jak rpm 설치 실현

910 단어
wget   https://download.oracle.com/otn/java/jdk/8u211-b12/478a62b7d4e34b78b671c754eaaf38ab/jdk-8u211-linux-i586.rpm
rpm -ivh dk-8u211-linux-i586.rpm
java -version 
 
[root@bogon jdk1.8.0_172-i586]# clear[root@bogonjdk 1.8.0 172 - i586]\# java - versionjava version java version "1.8.0 172"Java (TM) SE Runtime Environment (build 1.8.0 172 - b11) Java HotSpot (TM) Client VM (build 25.172 - b11, mixed mode, sharing) 자바 홈 설정
vi /etc/profile.d/java.sh
#java home

JAVA_HOME=/usr/java/jdk1.8.0_172-i586
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME PATH  

chmod 777 java.sh
source/etc/profile.d/java.sh
JAVA 검사HOME
echo $JAVA_HOME
[root@bogon jdk1.8.0_172-i586]# echo $JAVA_HOME
/usr/java/jdk1.8.0_172-i586
[root@bogon jdk1.8.0_172-i586]# 

  
다음으로 전송:https://www.cnblogs.com/SunshineKimi/p/11372198.html

좋은 웹페이지 즐겨찾기