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