yanzi-meng

通过控制台进入nginx目录后

1. 启动nginx

start nginx 或
nginx.exe

2. 重启nginx

nginx -s reload

3. 停止nginx

nginx -s stop 或
nginx -s quit
stop是快速停止nginx,可能并不保存相关信息;quit是完整有序的停止nginx,并保存相关信息。

nginx命令行参数说明NginxCommandLine


Usage: nginx [-?hvVtq] [-s signal] [-c filename] [-p prefix] [-g directives]
  • 1
Options 说明
-?,-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.

分类:

技术点:

相关文章:

  • 2021-09-08
  • 2021-10-13
  • 2021-11-03
  • 2021-07-07
  • 2021-09-07
  • 2021-09-25
  • 2021-08-04
  • 2021-11-06
猜你喜欢
  • 2021-11-04
  • 2021-08-07
  • 2021-08-14
  • 2021-10-24
  • 2021-11-03
  • 2022-01-07
  • 2021-12-19
相关资源
相似解决方案