在linux下执行php时无法执行,报错:php: command not found
解决方法:
export PATH=$PATH:/usr/local/php7/bin
把php7改成php56,因为阿里云轻量服务器里的目录是php56
可以输入echo $PATH
查看下有没有添加成功
在linux下执行php时无法执行,报错:php: command not found
解决方法:
export PATH=$PATH:/usr/local/php7/bin
把php7改成php56,因为阿里云轻量服务器里的目录是php56
可以输入echo $PATH
查看下有没有添加成功