[英]Upgrading PHP on MacOS Sierra
I'm trying to update my php to the current version on my MacOS Sierra. 我试图将我的php更新到MacOS Sierra上的当前版本。
When I type in vi ~/.bash-profile, all I get is a series of "~". 当我输入vi〜/ .bash-profile时,我得到的只是一系列“〜”。 How exactly do I update the PATH?
我究竟如何更新PATH?
sudo vi /usr/local/php5/php.d/99-liip-developer.ini gives me a ton of text, and when I try to run the next command (sudo cat /Library/Server/Web/Config/php/local.ini >> /usr/local/php5/php.d/99-liip-developer.ini) I get permission denied. sudo vi /usr/local/php5/php.d/99-liip-developer.ini给了我很多文本,当我尝试运行下一个命令时(sudo cat / Library / Server / Web / Config / php / local.ini >> /usr/local/php5/php.d/99-liip-developer.ini)我被拒绝了权限。 How do I go about this?
我该怎么办?
To answer your questions: 要回答您的问题:
vi
editor, you probably want to use another text editor. vi
编辑器,则可能要使用其他文本编辑器。 On OS X for example (this should open TextEdit normally...): $ open ~/.bash_profile
$ open -a TextEdit ~/.bash_profile
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.