This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12901|Reply: 2

[Web] nginx server restart command, close

[Copy link]
Posted on 4/7/2015 9:16:20 PM | | |

nginx -s reload: The reload takes effect after modifying the configuration
nginx -s reopen: Reopen the log file
nginx -t -c /path/to/nginx.conf to test if the nginx configuration file is correct

Closing nginx:
nginx -s stop: Quickly stop nginx
         quit: Stop nginx in a complete and orderly manner

Other ways to stop nginx:

ps -ef | grep nginx

kill -QUIT main process number: Calmly stop Nginx
kill -TERM main process number: Quickly stop Nginx
pkill -9 nginx: force stop nginx



Start nginx:
nginx -c /path/to/nginx.conf

Smooth restart nginx:
kill -HUP main process number




Previous:Photoshop running, please uninstall and reinstall this product, how to solve error code 16?
Next:java from 1 to 100 source code
 Landlord| Posted on 4/7/2015 9:17:40 PM |
nginx: the configuration file /server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /server/nginx/conf/nginx.conf test is successful
 Landlord| Posted on 4/7/2015 9:17:54 PM |
nginx:/server/nginx/conf/nginx.conf syntax configuration file will do
nginx: The configuration file /server/nginx/conf/nginx.conf test succeeds
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com