Skip to content

临时生效,重启失效

shell
export PATH=$PATH:/root/.config/composer/vendor/bin

通过修改配置文件

shell
//打开文件
vim /etc/profile
//在文件输入
PATH="$PATH:/root/.config/composer/vendor/bin"
export PATH
//保存文件
:wq
//使用文件生效
source /etc/profile

Released under the MIT License.