更改环境变量
[root@CentOS-003 ~]# vim ~/.bash_profile
[root@CentOS-003 ~]# source ~/.bash_profile
[root@CentOS-003 ~]# vim /etc/profile
[root@CentOS-003 ~]# source /etc/profile
[root@CentOS-003 ~]# vim /etc/profile.d/env-new.sh
[root@CentOS-003 ~]# source /etc/profile.d/env-new.sh
export PATH="$PATH":/usr/local/mysql/bin/
本文出自 “不作恶” 博客,请务必保留此出处http://vflong.blog.51cto.com/8622347/1376241
原文:http://vflong.blog.51cto.com/8622347/1376241