标签:usr java包 nbsp tar ora style version 文件名 www.
rpm -qa|grep java (列出本机已安装的java,没有则没空)
rpm -e --nodeps 文件名(上一步查到的文件名,一个一个复制过来卸载就好。)
下载java包
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
上传服务器
mkdir -p /usr/local/java
解压
tar zxvf jdk-8u191-linux-x64.tar.gz -C /usr/local/java/
vim /etc/profile
export JAVA_HOME=/usr/local/java/jdk1.8.0_191 JRE_HOME=${JAVA_HOME}/jre CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib PATH=${JAVA_HOME}/bin:$PATH
source /etc/profile
java -version
rpm -e --nodeps
https://www.cnblogs.com/stulzq/p/9286878.html
http://www.cnblogs.com/shanyou/p/8449456.html
https://blog.csdn.net/weixin_41004350/article/details/78491472
标签:usr java包 nbsp tar ora style version 文件名 www.
原文地址:https://www.cnblogs.com/xiaoyou2018/p/9945272.html