vim /etc/profile
添加:
PATH=/root/.config/composer/vendor/bin:$PATH
保存,退出,运行:
source /etc/profile
检查:
echo $PATH