简体   繁体   English

我的Mac OS X中有两个php,如何消除其中之一?

[英]I have two php in my mac OS X, how can i eliminate one of them?

Actually i have two php one in /usr/ which i can use and localhost/info.php is show this and the other one is /opt/local/ which is using by Command line. 实际上,我在/ usr /中有两个php可以使用,而localhost / info.php则显示了这个,而另一个是/ opt / local /,可以通过命令行使用。

How can i use one PHP in both places? 如何在两个地方都使用一个PHP?

Thanks Haroon 谢谢哈伦

.bash_profile$PATH全局变量前面添加php路径(要使用的路径):

export PATH=/usr/bin:$PATH 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM