标签:art 配置 string 默认 uil nginx number reg 下载安装
export JAVA_6_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
export JAVA_7_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0.jdk/Contents/Home
export JAVA_8_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home
export JAVA_HOME=$JAVA_7_HOME
3.创建alias命令动态切换JAVA_HOME的配置 alias jdk8=‘export JAVA_HOME=$JAVA_8_HOME‘
alias jdk7=‘export JAVA_HOME=$JAVA_7_HOME‘
alias jdk6=‘export JAVA_HOME=$JAVA_6_HOME‘
*验证* source .bash_profile CNxnliu:Versions xnliu$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
CNxnliu:Versions xnliu$ jdk8
CNxnliu:Versions xnliu$ java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
CNxnliu:Versions xnliu$
标签:art 配置 string 默认 uil nginx number reg 下载安装
原文地址:http://www.cnblogs.com/ciscoo/p/7191496.html