作者:000000 | 来源:互联网 | 2018-05-17 21:54
要在机子上装nginx+php+myql,想删除自带的apache、php{代码...}求怎么解决,我是准备用,homebrew安装nginx、php如果不删除自带的apache、php对用homebrew新安装的nginx、php有影响吗?
要在机子上装 nginx+php+myql,想删除自带的apache、php
sudo rm /usr/sbin/apachectl
override rwxr-xr-x root/wheel restricted,compressed for /usr/sbin/apachectl? y
rm: /usr/sbin/apachectl: Operation not permitted
求怎么解决,我是准备用,homebrew
安装 nginx、php
如果不删除自带的 apache、php
对用 homebrew
新安装的 nginx、php
有影响吗?
回复内容:
要在机子上装 nginx+php+myql,想删除自带的apache、php
sudo rm /usr/sbin/apachectl
override rwxr-xr-x root/wheel restricted,compressed for /usr/sbin/apachectl? y
rm: /usr/sbin/apachectl: Operation not permitted
求怎么解决,我是准备用,homebrew
安装 nginx、php
如果不删除自带的 apache、php
对用 homebrew
新安装的 nginx、php
有影响吗?
不要删除系统自带的,不会影响homebrew安装
你可以设置一下PATH系统变量,把/usr/local的东西放到/usr之前
就算你删除了系统自带的,下次系统升级多半又给你装上了
关闭rootless就可以删掉了,不过这样不安全
我的系统就是共存的,好像没啥事情
rootless关闭方法见:http://www.macx.cn/thread-2167166-1-5.html