安装
brew install nginx
配置文件:
/usr/local/etc/nginx/nginx.conf
用法:
brew services info nginx brew services restart nginx brew services start nginx brew services stop nginx
安装日志:
Docroot is: /usr/local/var/www The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that nginx can run without sudo. nginx will load all files in /usr/local/etc/nginx/servers/. To restart nginx after an upgrade: brew services restart nginx Or, if you don't want/need a background service you can just run: /usr/local/opt/nginx/bin/nginx -g daemon off;