nginx 基本操作

查看Nginx的版本号:nginx -V

启动Nginx:start nginx   或者  nginx

快速停止或关闭Nginx:nginx -s stop

正常停止或关闭Nginx:nginx -s quit

配置文件修改重装载命令:nginx -s reload

 

查看windows任务管理器下Nginx的进程命令:

tasklist /fi "imagename eq nginx.exe"

tasklist | findstr nginx.exe

 

nginx -h

Usage: nginx [-?hvVtTq] [-s signal] [-p prefix]
[-e filename] [-c filename] [-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)
-e filename : set error log file (default: logs/error.log)
-c filename : set configuration file (default: conf/nginx.conf)
-g directives : set global directives out of configuration file

 

posted @ 2022-03-08 00:19  builderman  阅读(71)  评论(0编辑  收藏  举报