Docroot is:/opt/homebrew/var/www
The default port has been setin/opt/homebrew/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.
nginx will load all files in/opt/homebrew/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:/opt/homebrew/opt/nginx/bin/nginx -g daemon off;// 翻译:// Docroot是:/opt/homebrew/var/www// 默认端口已在/opt/homebrew/etc/nginx/nginx中设置。配置为8080,以便// nginx可以在没有sudo的情况下运行。// nginx将加载/opt/homebrew/etc/nginx/servers/中的所有文件。// 要在升级后重新启动nginx,请执行以下操作:// brew服务重新启动nginx// 或者,如果您不想要/不需要后台服务,您可以运行:// /opt/homebrew/opt/nginx/bin/nginx -g守护进程关闭;