OS X

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"

 

posted @ 2015-11-16 20:01  XavierJZhang  阅读(200)  评论(0编辑  收藏  举报