在 mac 上 通过 brew 安装 nginx 时候
brew install nginx
出现错误
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
可以通过一下方法来解决权限问题
终端输入
sudo chown -R \`whoami\`:admin /usr/local/bin
sudo chown -R \`whoami\`:admin /usr/local/share
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。