Commands commonly used in nginx projects

Query process::ps aux|grep nginx
kill process::::kill -INT 26654
Query port::netstat -antp
Complete kill::::kill -9 2548
Completely kill::::pkill -9 http Kill all processes containing http
 
Graceful replacement of configuration files::::kill -HUP 'cat logs/nginx.pid'
 
You can use commands to control nginx
./sbin/nginx -h View command control

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324998329&siteId=291194637