Nginx资料之基本操作(windows环境),nginx基本操作


◆ 启动nginx:
方式一:

双击nginx.exe文件启动

方式二:

1、配置windows环境变量
2>nginx -p D:\openresty-1.13.6.1-win32

◆ nginx命令参数

D:\Users\HUANGZHIWEI816>nginx -h
nginx version: openresty/1.13.6.1
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: ./)
  -c filename   : set configuration file (default: conf/nginx.conf)
  -g directives : set global directives out of configuration file

相关内容

    暂无相关文章