Common commands for nginx server
Jul 29, 2016 am 08:58 AMnginx -s reload: Modify the configuration and reload it to take effect
nginx -s reopen: Reopen the log file
nginx -t -c /path/to/nginx.conf Test whether the nginx configuration file is correct
Close nginx:
nginx -s stop : Stop nginx quickly
Quit : Stop nginx completely and orderly
Other ways to stop nginx:
ps -ef | grep nginx
kill -QUIT main process number : Stop Nginx calmly
kill -TERM main process number : Stop Nginx quickly
pkill -9 nginx : Force stop Nginx
Start nginx:
nginx -c /path/to/nginx.conf
Restart nginx smoothly:
kill -HUP main process number
The above introduces the commonly used commands of nginx server, including related content. I hope it will be helpful to friends who are interested in PHP tutorials.

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to allow external network access to tomcat server

What are the nginx start and stop commands?

What are the differences between tomcat and nginx

How to deploy nodejs project to server

How to solve the problem of nginx when accessing the website
