通过控制台进入nginx目录后
1. 启动nginx
2. 重启nginx
3. 停止nginx
Usage: nginx [-?hvVtq] [-s signal] [-c filename] [-p prefix] [-g directives]
-?,-h | Print help. |
-v | Print version. |
-V | Print nginx version, compiler version and configure parameters. |
-t | Don’t run, just test the configuration file. |
-q | suppress non-error messages during configuration testing |
-s signal | Send signal to a master process: stop, quit, reopen, reload. |
-p prefix | Set prefix path (default: /usr/local/nginx/) |
-c configPath | Specify which configuration file Nginx should use instead of the default. |
-g directives | Set global directives. |