当前位置:首页 > 服务器技术 > nginx

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



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


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!