首先,我用
brew list Nginx
查到了用brew的方式安装的Nginx所有目录:
/opt/homebrew/Cellar/Nginx/1.21.3/.bottle/etc/ (15 files)
/opt/homebrew/Cellar/Nginx/1.21.3/bin/Nginx
/opt/homebrew/Cellar/Nginx/1.21.3/homebrew.mxcl.Nginx.plist
/opt/homebrew/Cellar/Nginx/1.21.3/homebrew.Nginx.service
/opt/homebrew/Cellar/Nginx/1.21.3/html -> ../../../var/www
/opt/homebrew/Cellar/Nginx/1.21.3/share/man/man8/Nginx.8
/opt/homebrew/Cellar/Nginx/1.21.3/share/Nginx/ (2 files)
这时候你需要注意,目录:
/opt/homebrew/Cellar/Nginx/1.21.3/.bottle/etc/ (15 files)
Nginx.conf
并不是你需要修改的(假设你在/opt/homebrew/Cellar/Nginx/1.21.3/html -> ../../../var/www 这里配置了一个vue工程)
你需要去修改