brew install nginx 

 开机启动

$ sudo cp `brew --prefix nginx`/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
$ sudo sed -i -e 's/`whoami`/root/g' `brew --prefix nginx`/homebrew.mxcl.nginx.plist

 error log

sudo mkdir /var/log/nginx/
nginx.conf: error_log  /var/log/nginx/error.log;)

 

Config file directory:

/usr/local/etc/nginx/nginx.conf
/usr/local/etc/php/5.4/php.ini
/usr/local/etc/nginx/fastcgi_params

 common commands

nginx -s stop ;stop
nginx ;start
ngin -s reload ;reload conf file

 

参考 

相关文章:

  • 2021-12-05
  • 2021-04-27
  • 2021-08-19
  • 2021-04-22
  • 2021-06-09
  • 2021-11-27
  • 2018-09-05
  • 2019-01-06
猜你喜欢
  • 2022-12-23
  • 2021-08-30
  • 2021-06-09
  • 2022-02-08
  • 2022-01-05
  • 2021-10-15
  • 2021-12-04
相关资源
相似解决方案