centos添加PATH环境变量

1.cd ~

2.vi .bashrc

3.在代码末尾增加一行:

export PATH =/path/to/target-dir/bin:$PATH

4.source .bash_profile立即生效

posted on 2014-11-02 01:29  xiaoshu1688  阅读(728)  评论(0编辑  收藏  举报