c盘清理的步骤是什么(如何清理C盘空间)
如何清理C盘空间怎么清理C盘的垃圾文件?每天上网会给电脑带来很多临时文件,这些垃圾文件不清理掉时间久了就会影响到电脑的运行速度。那怎
2022/12/08
下方链接下载JDK
JDK下载 - 编程宝库 (codebaoku.com)
(资料图片仅供参考)
解压到指定目录
--javascripttypescriptbashsqljsonhtmlcssccppjavarubypythongorustmarkdown
mkdir -p /usr/lib/jdktar -zxvf jdk-8u341-linux-x64.tar.gz -C /usr/lib/jdkvim /etc/profile
JAVA_HOME=/usr/lib/jdk/jdk1.8.0_341
CLASSPATH=
PATH:$JAVA_HOME/bin
export PATH JAVA_HOME CLASSPATH
source /etc/profile
java -version
检测jdk安装包
--javascripttypescriptbashsqljsonhtmlcssccppjavarubypythongorustmarkdown
rpm -qa | grep java显示java-1.7.0-openjdk-1.7.0.111-2.6.7.8.el7.x86_64python-javapackages-3.4.1-11.el7.noarchtzdata-java-2016g-2.el7.noarchjavapackages-tools-3.4.1-11.el7.noarchjava-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64java-1.8.0-openjdk-headless-1.8.0.102-4.b14.el7.x86_64java-1.7.0-openjdk-headless-1.7.0.111-2.6.7.8.el7.x86_64
卸载openjdk
--javascripttypescriptbashsqljsonhtmlcssccppjavarubypythongorustmarkdown
[root@localhost software]# rpm -e --nodeps tzdata-java-2016g-2.el7.noarch[root@localhost software]# rpm -e --nodeps java-1.7.0-openjdk-1.7.0.111-2.6.7.8.el7.x86_64[root@localhost software]# rpm -e --nodeps java-1.7.0-openjdk-headless-1.7.0.111-2.6.7.8.el7.x86_64[root@localhost software]# rpm -e --nodeps java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64[root@localhost software]# rpm -e --nodeps java-1.8.0-openjdk-headless-1.8.0.102-4.b14.el7.x86_64或者# yum remove *openjdk*之后再次输入rpm -qa | grep java 查看卸载情况:[root@localhost software]# rpm -qa | grep javapython-javapackages-3.4.1-11.el7.noarchjavapackages-tools-3.4.1-11.el7.noarch
标签: