方法一(仅此shell添加):shell
终端执行 export PATH=$PATH:/***/***file
方法二(全局添加):终端
修改/etc/profile方法
export PATH="$PATH:/***/***"
终端运行source /etc/profile