Nginx 常用命令

nginx常用命令  

    nginx          启动nginx  

    nginx -s quit         优雅停止nginx,有连接时会等连接请求完成再杀死worker进程  

    nginx -s reload     优雅重启,并重新载入配置文件nginx.conf

    nginx -s reopen     重新打开日志文件,一般用于切割日志

    nginx -v            查看版本  

    nginx -t            检查nginx的配置文件

    nginx -h            查看帮助信息

  nginx -V       详细版本信息,包括编译参数 

     nginx  -c filename  指定配置文件

 

原文:https://www.cnblogs.com/sunny18/p/8825497.html

posted @ 2021-01-27 21:43  一只奋斗的猪  阅读(59)  评论(0编辑  收藏  举报