Install and deploy Java in Linux
Install 6 small parts in Java (suitable for beginners) 1. download the software package
# wget http://download.Oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz?AuthParam=1441937568_6752e90a2aa70be3cf8baa0b8905125c
I wonder why the downloaded wget name is messy.
# mv jdk-7u79-linux-x64.tar.gz?AuthParam=1441937568_6752e90a2aa70be3cf8baa0b8905125c /root/jdk-7u79-linux-x64.tar.gz
# cd
2. decompress the jdk File
# tar zxf jdk-7u79-linux-x64.gz -C /data/
3. Create a soft connection
# ln -s /data/jdk1.7.0_79 /usr/local/java
4. Edit the environment variable (input: $ to locate the last line of the file, and then execute o to edit at the end of the file)
# vim /etc/profile
1 #------------------------------JAVA------------------------------# 2 export JAVA_HOME=/usr/local/java 3 export PATH=$JAVA_HOME/bin:$PATH 4 export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
5. Make java environment variables take effect
# source /etc/profile
6. Verify that java is successfully installed (this command returns the java version information)
# java -version
1 java version "1.7.0_79" 2 Java(TM) SE Runtime Environment (build 1.7.0_79-b15) 3 Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
Install JDK 1.8.0 _ 25 on Ubuntu 14.04 and configure Environment Variables
Build a JDK environment using CentOS
Install JDK 1.8.0 _ 25 on Ubuntu 14.04 and configure Environment Variables
Install Oracle JDK 14.04 on Ubuntu 1.8 LTS
CentOS6.3 install JDK and environment Configuration
Install JDK 8 on Ubuntu 14.04
Install JDK graph analysis in Ubuntu
This article permanently updates the link address: