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
Root directory and index file The root directive ...
Since its launch in 2009, flex has been supported...
1. Summary of location usage Location can locate ...
<br />Previous tutorial: Web Design Tutorial...
The 10-day tutorial uses the most understandable ...
Software and hardware environment centos7.6.1810 ...
We are in an era of rapid development of mobile In...
Preface There are many open source monitoring too...
Two ways to navigate the page Declarative navigat...
In addition to B-Tree indexes, MySQL also provide...
Table of contents Algorithmic Strategy Single-nod...
Table of contents Custom Vite plugins Using vite-...
This article introduces and shares the responsive...
The code demonstrates horizontal merging: <!DO...
RocketMQ is a distributed, queue-based messaging ...