shell 中直接修改
当前进场有效(退出后失效)
export PATH=$PATH:software/bin
修改用户级
在home/用户/.profile中添加,然后 source home/用户/.profile
export PATH=$PATH:software/bin
修改系统级
vi /etc/profile 添加,然后 source /etc/profile
export PATH=$PATH:software/bin
本文来源:程序之心,转载请注明出处!
最新内容
© 2016 - 2024 chengxuzhixin.com All Rights Reserved.