Install JDK under Linux under centOS6.5
Contact qq:413607496, we can discuss with each other.
1, download the required JDK version, unzip the version of the.
such as: jdk-7u79-linux-x64.tar.gz
2, install your virtual machine, and install a good Linux system, centOS6.5.
3. You need a tool to connect to a Linux system, such as SSH (not the Java Development Framework) tool.
4, upload jdk-7u79-linux-x64.tar.gz to the Linux system, the file path is:/usr/local/
5. Unzip the JDK
Using the command: Tar zxvf /usr/local/jdk-7u79-linux-x64.tar.gz
6. After decompression
unzip the file in this path:/usr/local/ jdk1.7.0_79
7, Configuration Java_home
Use the command: Vi/etc/profile open the Linux configuration file for editing
Press I to enter the edit state, use the upper and lower left and right azimuth keys to control the cursor
(especially when editing, it is important to note that Java_home wrong, if the other configuration, may lead to Linux login not on the)
As input java_home for configuration
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/8C/15/wKioL1hh1yqDKQ0WAAFfVOEOfWQ987.png-wh_500x0-wm_3 -wmp_4-s_3014321798.png "title=" 7{xa%oee]c80hot17 ' Y5$9i.png "alt=" Wkiol1hh1yqdkq0waaffvoeofwq987.png-wh_50 "/>
Java_home=/usr/local/jdk1.7.0_79export java_homeexport path= $JAVA _home/bin: $PATHexport classpath=.: $JAVA _home/lib /dt.jar: $JAVA _home/lib/tools.jar
Press ESC to exit, then enter: X to save
8, let us just the configuration to take effect
Input command: Source/etc/profile
9. Check if the JDK is installed successfully
Input: Java-version View JDK version
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/8C/15/wKioL1hh2BWQqUYGAADgFHpOhLw448.png-wh_500x0-wm_3 -wmp_4-s_2409728459.png "title=" ox1p}03@218a) jh069a~5{r.png "alt=" Wkiol1hh2bwqquygaadgfhpohlw448.png-wh_50 "/>
This article is from the "Green Years" blog, be sure to keep this source http://alex233.blog.51cto.com/8904951/1886431
Install JDK under Linux under centOS6.5