Nginx startup error: Job for nginx.service failed because the control process exited

tags: nginx  centos  server  apache

Execute after the installation of nginx is completed: an error is reported after service nginx start:

Starting nginx (via systemctl): Job for nginx.service failed because thournalctl -xe” for details.

This is a bug in centos7.

Solution:

If your apache server is not turned off, just turn it off and start nginx. If not, follow the steps below:

1, Remove the nginx just installed
 Implementation: yum remove nginx
2, Add Centos Nginx yum resource library
 Implementation: rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm Retrieving http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
3, Install nginx
 Execution: yum install-y nginx
4, Service nginx start can see that the startup is successful

! ! ! Note that the third step cannot be written as yum install nginx

If the startup is successful, remember to like it~

Intelligent Recommendation

Start nginx prompt Job for nginx.service failed because the control process exited with error code.

The reason on my server is the default/etc/nginx/nginx.conf The configuration file is wrong. The reason I encountered the problem is different from your basic. After Google, each blog and question and...

About nginx Job for nginx.service failed because the control process exited with error code.

About nginx Job for nginx.service failed because the control process exited with error code. When you put down the microcontroller to work on the server. . . Just when there was a metaphysical problem...

Start the nginx display the job for nginx.service failed Because the Control PROCES Exited with Error Code on Ubuntu

Such a problem is usually used to start the 80 port of Nginx. It is occupied by Apache2. This is how we will kill the process of Apache2 as shown in the figure, but we find that we can't kill. Then we...

Centos7 problem Job for nginx.service failed because the control process exited with error code

Problem: Starting nginx with systemctl start nginx.service, Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "jo...

Job for nginx.service failed because the control process exited with error code. See "systemctl stat

When you start nginx service If you encounter this error Job for nginx.service failed because the control process exited with error code See "systemctl stat solution is as follows: Can kill...

More Recommendation

About treatment: Job for nginx.service failed because the control process exited with error code ...... problem.

Processing: Job for nginx.service failed because the control process exited with error code See "systemctl status nginx.service" and "journalctl -xe" for details (the port number i...

Job for nginx.service failed because the control process exited with error code. See “systemctl stat

If you encounter this error when starting the nginx serviceJob for nginx.service failed because the control process exited with error code. See “systemctl stat The possible reasons are as follow...

Job for nginx.service failed because the control process exited with error code. See “systemctl ....

Nginx abnormal Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details. Nginx Nor...

Nginx reports an error finding method, start nginx and prompt "Job for nginx.service failed because the control process ..."

When looking for the line where the configuration file is in error, you can enter the colon ':' before entering 'i' to enter the edit mode, plus a few lines, such as line 3 above, then enter ': 3', an...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top