Nginx server restart closes the reload command
- 2020-05-12 07:00:34
- OfStack
nginx-s reload: reload after configuration changes take effect
nginx-s reopen: reopen the log file
nginx-t tests the nginx configuration file for correctness
When checking for correctness, it appears:
nginx: the configuration file /home/kratos/local/nginx/conf/nginx.conf syntax is ok
nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
nginx: configuration file /home/kratos/local/nginx/conf/nginx.conf test failed
You need to add the sudo command
Close the nginx:
nginx-s stop: quick stop nginx
quit: stop nginx completely and orderly
Other ways to stop nginx:
ps -ef | grep nginx
kill-QUIT main process no. : calmly stop Nginx
kill-TERM main process no. : quick stop Nginx
pkill-9 nginx: force Nginx to stop
Start the nginx:
nginx -c /path/to/nginx.conf
Smooth restart nginx:
kill -HUP main process number