[root@www sbin]# netstat -lntup |grep nginx
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 9699/nginx
Nginx监听tcp80端口
停止守护进程
nginx -s stop //立即停止守护进程(TERM信号)
nginx -s quit //温和地停止守护进程(QUIT信号)
nginx -s reopen //重新打开日志文件
nginx -s reload //重新载入配置文件
使用kill 或 killall命令
nginx -t //测试配置文件
nginx -t -c file //使用额外的配置文件测试
Linux公社的RSS地址:https://www.linuxidc.com/rssFeed.aspx