当前位置:Gxlcms > PHP教程 > nginx-备注

nginx-备注

时间:2021-07-01 10:21:17 帮助过:33人阅读

安装

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



以上就介绍了nginx-备注,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

人气教程排行