在 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

Zorr0
47 声望3 粉丝

[链接]


引用和评论

0 条评论