To solve the problem that Deepin cannot start Google Chrome browser as root user, follow the steps below. 1. Find the path of Chrome If the path is: 2. Edit the google-chrome file Open google-chrome and modify the command at the end of the file. Add Press Esc, :wq, exit and save, and now you can open the Chrome browser! ps: Let's see how to start Apache|Nginx with a non-root user As we all know, port 80 of Apache is a system reserved port. If it is started by other non-root users, the following error will be reported:
Because ordinary users can only use ports above 1024, ports within 1024 can only be used by the root user. However, in order to avoid having to go through the root user every time you start the computer, you can solve this problem by setting the UID. You can complete it by performing the following operations at one time.
Why not chmod u+s apachectl?
Conclusion: The apachectl script starts the entire httpd service by starting the httpd file. Similarly, the same is true for starting nginx. Use the root user to enter....nginx/sbin Then chown root nginx Then you can start it through a normal user. The same is true for tomcat. Of course, it is also possible to modify the default port to a value greater than 1024. Summarize The above is what I introduced to you about Linux to solve the problem that Deepin cannot start Google Chrome browser as root user. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time! You may also be interested in:
|
<<: Conventional JS processing functions for Vue Element front-end application development
>>: How to implement mysql database backup in golang
Methods for changing passwords before MySQL 5.7: ...
Table of contents 1. Introduction 2. Rendering 3....
I have encountered a problem. When testing the ed...
Table of contents 1. Introduction 2. JDBC impleme...
Solution to the problem that there is no unzip co...
Note: This method is only applicable to webkit-ba...
The MySQL explain command can analyze the perform...
animation Define an animation: /*Set a keyframe t...
Table of contents 1. Shallow copy 1. Object.assig...
Table of contents el-scrollbar scroll bar el-uplo...
This article example shares the specific code of ...
1. Introduction Why do we need indexes? In genera...
nohup command: If you are running a process and y...
Preface Starting from React 16, the concept of Er...
Table of contents 1. Effect diagram (multiple col...