[ASK] brew install nginx
2016-06-01 14:16
363 查看
..........
..........
Error: Permission denied - /usr/local/etc/openssl
..........
..........
Cannot create directory /usr/local/etc/openssl: Permission denied
created directory `/usr/local/Cellar/openssl/1.0.2h_1/bin'
created directory `/usr/local/Cellar/openssl/1.0.2h_1/lib'
created directory `/usr/local/Cellar/openssl/1.0.2h_1/lib/engines'
created directory `/usr/local/Cellar/openssl/1.0.2h_1/lib/pkgconfig'
created directory `/usr/local/Cellar/openssl/1.0.2h_1/include'
created directory `/usr/local/Cellar/openssl/1.0.2h_1/include/openssl'
make: *** [install_sw] Error 13
READ THIS: https://git.io/brew-troubleshooting
..........
--------------------------------------------------
按照提示还就真去那个网址看了一下,也没有所得。
猜测就是应为没有权限,所以准备用sudo试试,结果蹦出了如下这样的提示!!!
Error: Cowardly refusing to 'sudo brew install'
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.
唉,人家既然不建议咱们就别这么干了吧,忽然想到还有这么一招。
按照提示一步步操作,没有问题了。
..........
Error: Permission denied - /usr/local/etc/openssl
..........
..........
Cannot create directory /usr/local/etc/openssl: Permission denied
created directory `/usr/local/Cellar/openssl/1.0.2h_1/bin'
created directory `/usr/local/Cellar/openssl/1.0.2h_1/lib'
created directory `/usr/local/Cellar/openssl/1.0.2h_1/lib/engines'
created directory `/usr/local/Cellar/openssl/1.0.2h_1/lib/pkgconfig'
created directory `/usr/local/Cellar/openssl/1.0.2h_1/include'
created directory `/usr/local/Cellar/openssl/1.0.2h_1/include/openssl'
make: *** [install_sw] Error 13
READ THIS: https://git.io/brew-troubleshooting
..........
--------------------------------------------------
按照提示还就真去那个网址看了一下,也没有所得。
猜测就是应为没有权限,所以准备用sudo试试,结果蹦出了如下这样的提示!!!
Error: Cowardly refusing to 'sudo brew install'
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.
唉,人家既然不建议咱们就别这么干了吧,忽然想到还有这么一招。
sudo chown -R <username>:<group> /usr/local/etc/openssl/
按照提示一步步操作,没有问题了。
相关文章推荐
- Nginx之4中不同的负载均衡算法
- 基于nginx+lua实现防火墙动态规则请求限制
- Nginx服务器防止被压力测试
- CentOS yum配置LNMP服务器(Nginx+PHP+MySQL)
- Keepalived+nginx造成流量异常
- Nginx 配置 多个VSFTP的loadbalance
- Nginx的SSL配置优化
- 配置Nginx实现负载均衡
- 了解nginx及其安装
- Nginx之proxy_store模块
- Nginx配置文件详细说明
- 网易视频云:用Nginx搭建flv,mp4,hls流媒体服务器
- Nginx 负载均衡 后端 监控检测 nginx_upstream_check_module 模块的使用
- nginx配合keepalive的方案(双主)
- 多个应用系统,只有一个域名如何开发,nginx
- Apache与Nginx的优缺点比较
- nginx编译和调试
- CodeIgniter 的nginx配置示例
- nginx设置重写规则
- Nginx负载均衡实践之一:基本实现