nginx starts, restarts, shuts down
Jul 28, 2016 am 08:28 AM
kill
nbsp
nginx
usr
1. Start
cd usr/local/nginx/<span>sbin .</span>/nginx
Copy after login
2. Restart
Change the configuration and restart nginx
Query nginx main process number ps -ef | grep nginx Stop gracefully kill -QUIT main process number Quick stop kill -TERM main process numberForce stop kill -9 nginx
If nginx.conf is configured with the pid file path, if not, then In the logs directory kill -Signal type '/usr/local/nginx/logs/nginx.pid'Four. Upgrade 1. First replace the old program file with the new program 2. Kill -USR2 old version program The main process number or process file name At this time, the old nginx main process will rename its process file to .oldbin, and then execute the new version of nginx. At this time, the new and old versions will run at the same time 3. Kill -WINCH the old version of the main process No. 4. Start the new/old worker process without reloading the configuration kill -HUP Old/new version main process number Close the old/new process gracefully kill -QUIT Old/new process number Quickly close the old /New process kill -TERM old/new process numberThe above introduces the startup, restart, and shutdown of nginx, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot tools Tags

Hot Article
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

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?

How to deploy nodejs project to server

How to solve the problem of nginx when accessing the website

How to communicate between docker containers
