码迷,mamicode.com
首页 > 编程语言 > 详细

yum安装java

时间:2020-06-28 16:50:27      阅读:52      评论:0      收藏:0      [点我收藏+]

标签:get   jre_home   evel   yum安装   jre   x86   java_home   home   lib   

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

标签:get   jre_home   evel   yum安装   jre   x86   java_home   home   lib   

原文地址:https://www.cnblogs.com/ray-mmss/p/13203630.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!