Nginx Mac笔记
生活随笔
收集整理的這篇文章主要介紹了
Nginx Mac笔记
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
安裝
brew install nginx可能出現問題:
Error: /usr/local is not writable. You should change the ownership and permissions of /usr/local back to your user account:sudo chown -R $(whoami) /usr/local fatal: could not create leading directories of '/usr/local/Library/Taps/homebrew/homebrew-core': Permission denied解決辦法:
先卸載brew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"再重裝:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"簡單命令
啟動
nginx停止
nginx -s stop重啟
nginx -s reload轉載于:https://www.cnblogs.com/lovesong/p/10260694.html
總結
以上是生活随笔為你收集整理的Nginx Mac笔记的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Jmeter测试Mysql数据库-入门篇
- 下一篇: 解决Nginx: [error] ope