在 mac 上 經過 brew 安裝 nginx 時候nginx
brew install nginx
出現錯誤code
Error: The following directories are not writable by your user: /usr/local/share/man/man8 You should change the ownership of these directories to your user. sudo chown -R $(whoami) /usr/local/share/man/man8 And make sure that your user has write permission. chmod u+w /usr/local/share/man/man8
能夠經過一下方法來解決權限問題ip
終端輸入it
sudo chown -R \`whoami\`:admin /usr/local/bin sudo chown -R \`whoami\`:admin /usr/local/share