Windows下启动,关闭Nginx命令
作者:
Belmode | 来源:发表于
2020-02-28 22:58 被阅读0次启动
- 直接点击Nginx目录下的nginx.exe
- cmd运行start nginx(start nginx.exe)
- Bat中,通过
cmd /k start nginx(.exe)
来启动
关闭
- nginx -s stop
- nginx -s quit
- stop表示立即停止nginx,不保存相关信息
- quit表示正常退出nginx,并保存相关信息
重启(因为改变了配置,需要重启)
nginx -?/nginx -h
nginx version: nginx/1.9.4
Usage: nginx [-?hvVtTq] [-s signal] [-c filename] [-p prefix] [-g directives]
Options:
-?,-h : this help
-v : show version and exit
-V : show version and configure options then exit
-t : test configuration and exit
-T : test configuration, dump it and exit
-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: NONE)
-c filename : set configuration file (default: conf/nginx.conf)
-g directives : set global directives out of configuration file
本文标题:Windows下启动,关闭Nginx命令
本文链接:https://www.haomeiwen.com/subject/pdunthtx.html
网友评论