nginx常用命令

重启服务 systemclt restart nginx.service

查看进程   ps aux |grep nginx

 

重新加载配置文件  :

配置文件位置  :  /etc/nginx/nginx.conf (includ的其他的配置文件)             /etc/nginx/conf.d/*.conf(默认包含defaule.conf)

检查配置文件语法    nginx -tc /etc/nginx/nginx.conf  

重新加载配置文件    nginx -s reload -c /etc/nginx/nginx.conf  

 

posted @ 2017-07-24 22:19  每天多帅一点点  阅读(998)  评论(0)    收藏  举报