CentOS 7 openjdk 1.8、 mysql-connector安装配置

yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel
下载mysql-connector-java-5.1.47-bin.jar,上传到/usr/lib/jvm/java-1.8.0-openjdk/lib 目录下

vim /etc/profile

export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/mysql-connector-java-5.1.47-bin.jar
export PATH=$JAVA_HOME/bin:${PATH}

source /etc/profile

你可能感兴趣的:(CentOS 7 openjdk 1.8、 mysql-connector安装配置)