关于composer 的 /usr/bin/env: php: No such file or director报错
因为composer 找不到php执行文件
我的php并未放在/usr/bin/env目录下 而是 /usr/local/php/bin
解决:
vim /etc/profile
//加上
export PATH=$PATH:/project/php/bin
保存退出
source /etc/profile
//查看php版本
php -v
注:该配置对所有用户生效
参考:https://www.cnblogs.com/zhanghanwen16/p/9543750.html
...
原创
2020-05-26 13:18:40 ·
592 阅读 ·
0 评论