At just, I bought a server
Very, very happy, although played virtual machine, but! The feeling is not the same
All today's walk through the process
In the Linux system installation JDK
Link: https: //pan.baidu.com/s/16lCCn8yUdBtHOJ36UiM6TA
extraction code: 4b5p
Note: JDK here is Linux environment
two.
Into the / opt directory, JDK installation package after viewing uploaded
Use tar command to decompress the installation package mounting operation
tar -zxvf jdk-8u171-linux- x64.tar.gz
After extracting View Results
Renaming for extracting package, this step is not necessary, primarily for the convenience of rear configure the environment variables
mv jdk1.8.0_171 / jdk1.8
Configuration environment variable
Edit / etc / profifile file
vi / etc / profile
Profifile came to the end of the file, enter the edit mode
o
enter the edit mode
Increase JAVA_HOME and PATH environment variable to two
# JAVA_HOME
export JAVA_HOME=/opt/jdk1.8
# PATH
export PATH=$PATH:$JAVA_HOME/bin
Explanation: $ PATH environment variable path is to get itself has been configured
:( colon) is delimited effect equivalent windows system configured comma
Note After he finished press the Esc key on the keyboard to exit edit mode
Enter: wq Enter a timely manner to save and exit
Using the source command file to take effect
Test javac and java command is available (it could be possibly Chinese English it does not matter)
Use
java -version
command to view the currently installed version of jdk
End END!