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

原文地址:https://www.cnblogs.com/yi1036943655/p/14337178.html