1.Java配置环境变量:在/etc/profile中加入下列代码后,source /etc/profile
1 #Set Java Environment 2 export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home" 3 export CLASSPATH=".:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar" 4 export PATH="$PATH:$JAVA_HOME/bin"
2.MySQL配置环境变量:在/etc/profile中加入下列代码后,source /etc/profile
#Set MySQL Environment export PATH="$PATH:/usr/local/mysql/bin"