php命令加入全局配置,让php命令在任何地方可用

在 /www/etc/profile 文件中php

unset i
unset -f pathmungelinux

这两行上面添加(若是没有,则在最后添加)bash

PATH=$PATH:/www/wdlinux/phps/70/bin  
export PATH.net

注意路径要正确blog

保存后运行source /etc/profileget

若是出错,则看-bash: $'\r': command not found 类问题的解决file

相关文章
相关标签/搜索