通过控制台进入nginx目录后

1. 启动nginx

2. 重启nginx

3. 停止nginx

nginx命令行参数说明NginxCommandLine


Usage: nginx [-?hvVtq] [-s signal] [-c filename] [-p prefix] [-g directives]
  • 1
-?,-hPrint help.
-vPrint version.
-VPrint nginx version, compiler version and configure parameters.
-tDon’t run, just test the configuration file.
-qsuppress non-error messages during configuration testing
-s signalSend signal to a master process: stop, quit, reopen, reload.
-p prefixSet prefix path (default: /usr/local/nginx/)
-c configPathSpecify which configuration file Nginx should use instead of the default.
-g directivesSet global directives.
05-11 22:33