zfxcms ^回到顶部

您的当前位置:首页 > 架构 > Linux > linux下配置php环境变量

linux下配置php环境变量

所属分类: Linux   2019-04-01 14:13:06  编辑:admin  浏览次数 635 次

方法1.阿里云的WDCP服务器里

ln -s /www/wdlinux/nginx_php-5.6.29/bin  /usr/local/bin   注意nginx_php是自己的路径

2.vim /etc/profile

//加上

export PATH=$PATH:/usr/local/bin

保存退出

source /etc/profile

php -v 查看版本

方法2.vim /etc/profile

//加上

export PATH=$PATH:/www/wdlinux/nginx_php-5.6.29/bin 

保存退出

source /etc/profile

php -v 查看版本

注意ssh退出重进就好了

方法3.如果实在不行的话,那就直接用你的php路径去操作其他的东西


服务器文章检索

服务器文章目录