linux 安装mysql

https://www.cnblogs.com/julyme/p/5969626.html

wget获取jdk

wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u141-b15/336fa29ff2bb4ef291e347e091f7f4a7/jdk-8u141-linux-i586.tar.gz"

 

配置变量

JAVA_HOME=/home/weijun/jdk/jdk1.8.0_141
JRE_HOME=/home/weijun/jdk/jdk1.8.0_141/jre
CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME JRE_HOME CLASS_PATH PATH

source /etc/profile

java -version

posted @ 2019-02-12 22:24  SteveYu  阅读(151)  评论(0编辑  收藏  举报