打開訪達,shift + command + g 輸入文件路徑,可直接查看文件nginx
nginx安裝文件目錄
/usr/local/Cellar/nginx
nginx配置文件目錄
/usr/local/etc/nginx
config文件目錄
/usr/local/etc/nginx/nginx.conf
系統hosts位置
/private/etc/hosts安全
nginx #啓動nginx
nginx -s quit #快速中止nginx
nginx -V #查看版本,以及配置文件地址
nginx -v #查看版本
nginx -s reload|reopen|stop|quit #從新加載配置|重啓|快速中止|安全關閉nginx
nginx -h #幫助ui
brew uninstall nginx
參考文件:https://www.jianshu.com/p/026... https://www.jianshu.com/p/5c23b09d443fspa