yum安装java
Posted Ray_chen
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yum安装java相关的知识,希望对你有一定的参考价值。
yum install -y java-1.8.0-openjdk yum install -y java-1.8.0-openjdk-devel.x86_64 ls -lrt /usr/bin/java cat <<EOF > /etc/profile.d/jdk export JAVA_HOME=/usr/local/java export JRE_HOME=/usr/local/java/jre export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:/usr/local/java/lib/tools.jar:$JRE_HOME/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:$PATH EOF source /etc/profile wget http://central.maven.org/maven2/mysql/mysql-connector-java/8.0.16/mysql-connector-java-8.0.16.jar mkdir -pv /usr/share/java mv mysql-connector-java-8.0.16.jar /usr/share/java/mysql-connector-java.jar
以上是关于yum安装java的主要内容,如果未能解决你的问题,请参考以下文章