nginx-备注,


安装

1、brew search nginx

2、brew install nginx

启动nginx ,sudo nginx ;访问localhost:8080 发现已出现nginx的欢迎页面了。

常用的指令有: 
nginx -V 查看版本,以及配置文件地址
nginx -v 查看版本
nginx -c filename 指定配置文件
nginx -h 帮助



Starting, Stopping, and Reloading Configuration

To start nginx, run the executable file. Once nginx is started, it can be controlled by invoking the executable with the -s parameter. Use the following syntax:

nginx -s signal

Where signal may be one of the following:

  • stop — fast shutdown
  • quit — graceful shutdown
  • reload — reloading the configuration file
  • reopen — reopening the log files

For getting the list of all running nginx processes, the ps utility may be used, for example, in the following way:

ps -ax | grep nginx

 7813 ??         0:00.00 nginx: master process ./nginx

 7814 ??         0:00.00 nginx: worker process

 7827 ttys000    0:00.01 grep nginx



相关内容

    暂无相关文章