linux安裝java
linux安裝java
1.下載
從oracle網站下載java包
/>
Jdk-8u60-linux-x64.rpm
2. 安裝
chmod 755 jdk-8u60-linux-x64.rpm
rpm -ivh jdk-8u60-linux-x64.rpm
3.檢視安裝結果
which java
whereis java
4.配置
cd /root
vi .bash_profile
export JAVA_HOME=/usr/java
export JAVA_BIN=/usr/java/jdk1.8.0_60/bin
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME JAVA_BIN PATH CLASSPATH
source .bash_profile
[root@dgdb /]# java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
[root@dgdb /]#
1.下載
從oracle網站下載java包
/>
Jdk-8u60-linux-x64.rpm
2. 安裝
chmod 755 jdk-8u60-linux-x64.rpm
rpm -ivh jdk-8u60-linux-x64.rpm
[root@dgdb soft]# chmod 755 jdk-8u60-linux-x64.rpm [root@dgdb soft]# ls -rtl total 774056 -rw-r--r-- 1 root root 631758846 Sep 17 22:37 pdi-ce-5.4.0.1-130.zip -rwxr-xr-x 1 root root 160084320 Sep 17 22:56 jdk-8u60-linux-x64.rpm [root@dgdb soft]# rpm -ivh jdk-8u60-linux-x64.rpm Preparing... ########################################### [100%] 1:jdk1.8.0_60 ########################################### [100%] Unpacking JAR files... tools.jar... plugin.jar... javaws.jar... deploy.jar... rt.jar... jsse.jar... charsets.jar... localedata.jar... jfxrt.jar... [root@dgdb soft]# |
3.檢視安裝結果
which java
whereis java
[root@dgdb soft]# which java /usr/bin/java [root@dgdb soft]# whereis java java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java /usr/share/man/man1/java.1 [root@dgdb soft]# |
4.配置
cd /root
vi .bash_profile
export JAVA_HOME=/usr/java
export JAVA_BIN=/usr/java/jdk1.8.0_60/bin
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME JAVA_BIN PATH CLASSPATH
source .bash_profile
[root@dgdb /]# java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
[root@dgdb /]#
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27571661/viewspace-1802957/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux下安裝java及配置(yum安裝)LinuxJava
- 如何在 Linux 上安裝 JavaLinuxJava
- Linux下Java環境安裝LinuxJava
- linux安裝Arthas監控java程式LinuxJava
- Linux實用之Java(JDK)環境安裝LinuxJavaJDK
- codis安裝 (java 安裝 + zookeeper 安裝 + go 安裝 + codis 安裝JavaGo
- linux 安裝yum 安裝phpLinuxPHP
- Linux安裝解除安裝MySQLLinuxMySql
- 教你如何在 Linux 系統上安裝 JavaLinuxJava
- linux下檢視java的安裝路徑LinuxJava
- LINUX下安裝oracle的java字型問題LinuxOracleJava
- linux中安裝JDK linux中安裝Tomcat linux中安裝Mysql 及故障解析 linux系統安裝redisLinuxJDKTomcatMySqlRedis
- linux 解除安裝jdk和安裝LinuxJDK
- Linux下安裝、解除安裝mysqlLinuxMySql
- Linux 解除安裝openjdk 安裝oraclejdkLinuxJDKOracle
- linux下安裝snap安裝工具Linux
- Linux系統安裝——Centos 7.6安裝LinuxCentOS
- ffmpeg安裝之linux編譯安裝Linux編譯
- 【 Linux 軟體安裝 】- 1 JDK安裝LinuxJDK
- Linux下JDK安裝與解除安裝LinuxJDK
- Linux 圖形介面安裝解除安裝Linux
- Linux-Ubuntu-mysql-安裝&解除安裝LinuxUbuntuMySql
- Linux安裝pycharmLinuxPyCharm
- mysql安裝 for LinuxMySqlLinux
- Kafka安裝-linuxKafkaLinux
- Linux安裝oracleLinuxOracle
- Linux 安裝 powershellLinux
- MongoDB | Linux 安裝MongoDBLinux
- redis安裝(linux)RedisLinux
- Linux安裝KafkaLinuxKafka
- Docker for Linux 安裝DockerLinux
- Linux 安裝kafkaLinuxKafka
- linux 安裝redisLinuxRedis
- linux安裝FTPLinuxFTP
- Linux安裝DockerLinuxDocker
- linux安裝nacosLinux
- linux 安裝wineLinux
- linux安裝mqLinuxMQ