各种bin,sbin的执行顺序
/usr/local/bin->/usr/bin->/bin->/usr/local/sbin->/usr/sbin->/sbin
如何查看
echo $PATH (优先级高的在前)
添加环境变量
$PATH=$PATH:/usr/local/bin/php
参考:https://blog.csdn.net/wo18237095579/article/details/80334019
/usr/local/bin->/usr/bin->/bin->/usr/local/sbin->/usr/sbin->/sbin
echo $PATH (优先级高的在前)
添加环境变量
$PATH=$PATH:/usr/local/bin/php
参考:https://blog.csdn.net/wo18237095579/article/details/80334019