homebrew install nginx for mac

brew install nginx

nginx -h  顯示以下

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: /usr/local/Cellar/nginx/1.10.1/)
  -c filename   : set configuration file (default: /usr/local/etc/nginx/nginx.conf)

  -g directives : set global directives out of configuration file


停止:nginx -s stop
啟動:nginx 

留言

這個網誌中的熱門文章

鐵人三項

菜鳥K8s資源 心得分享

Ironman 70.3 新手紀錄分享