nginx常用命令
2019-07-06 17:25:19

查看nginx配置文件路径 nginx -t

查看nginx进程 ps -ef | grep nginx

检测配置文件规则
nginx -c /etc/nginx/default.d/websocket.conf

改完配置后需要reload  nginx -s reload

启动、停止、重载命令
systemctl start nginx.service
systemctl stop nginx.service
systemctl reload nginx.service
systemctl status nginx.service