Nginx does not start at boot

What should i do when

sudo update-rc.d nginx defaults 

displays

 System start/stop links for /etc/init.d/nginx already exist. 

but nginx still does not start on reboot?

+6
source share
2 answers

I know this team works on Centos. Not too sure about Ubuntu. Its worth a try:

chkconfig nginx on

The syntax is the same for any service, for example

chkconfig httpd on

Hope this works.

0
source

First of all, check that there are no problems with starting nginx at all.

 vi /var/log/nginx/error.log 

Then check that you can start nginx using the launch service and start it

 service nginx start ; ps -ef | grep nginx 

Then double check that the start of the script exists and is working correctly.

 cd /etc/init.d ; vi nginx* 

Hope this helps

0
source

Source: https://habr.com/ru/post/979295/


All Articles