[英]PHP ZendFramework zf command not found
Hy, HY,
I've installed Zend Server on my OSX 10.9.3 recently. 我最近在OSX 10.9.3上安装了Zend Server。 I've gone trough a lot of manual, copied the zf.sh and zf.php beside the php binary (/usr/bin) and copied the ZendFramework/libary content to the PHP include folder. 我花了很多手册,将zf.sh和zf.php复制到php二进制文件(/ usr / bin)旁边,并将ZendFramework / libary内容复制到PHP包含文件夹。 After this, I'm can't use the zf command in terminal. 在此之后,我将无法在终端中使用zf命令。
Also with this command it wont't work. 同样,使用此命令将无法正常工作。
alias zf=/usr/bin/zf.sh
If I try to run "zf" after this I got the following message: 如果在此之后尝试运行“ zf”,则会收到以下消息:
-bash: /usr/bin/zf.sh: Permission denied
If I use "sudo zf" I got this: 如果我使用“ sudo zf”,则会得到以下信息:
sudo: zf: command not found
Any suggestions? 有什么建议么?
Thanks, Dave. 谢谢,戴夫。
试试这个别名,别忘了在添加新别名后重新初始化bash。
alias zf='sudo bash /usr/bin/zf.sh'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.