Advertisement

在MacBook上安装Nginx用于服务管理

阅读量:

笔者所使用的设备为MacBook,其系统内预装了Homebrew工具,通过该工具进行nginx的安装过程显得尤为便捷:
执行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
    
    
      
      
      
      
    

应对策略:

复制代码
    sudo chown -R `whoami`:admin /usr/local/bin
    sudo chown -R `whoami`:admin /usr/local/share
    
    
      
      
    

执行权限回收操作后即

全部评论 (0)

还没有任何评论哟~