Jdk-6u45-linux-x64.bin installation (Ameoba for MySQL)
1. Download: Jdk-6u45-linux-x64.bin
Http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html
2. Next, log in to the Linux system and give the EXECUTE permission with the following command:
# Chmod-r 775 Jdk-6u45-linux-x64.bin
3. Perform the installation of the JDK.
#./jdk-6u45-linux-x64.bin
During the installation process, you will be prompted to press Enter and hit enter. Generates a jdk1.6.0_45 file in the current directory of Linux.
The JDK installation is complete.
4. Configure the environment variables.
The configuration of environment variables is divided into several ways, depending on your choice of configuration:
Mode one: Configure Java_home and PATH and Class_path in the/etc/profile file
Because such a setting will work for the user's shell, it will have an impact on system security.
is at the end of this file add:
Export java_home=/home/software/jdk1.6.0_45
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export path= $PATH: $JAVA _home/bin
Way two:
Modify the. bashrc file to configure environment variables:
#vi. BASHRC
Export java_home=/home/software/jdk1.6.0_45
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export path= $PATH: $JAVA _home/bin
After the configuration is complete, use the logout command to exit and then log back in to make it effective.
Verify that the installation is successful and use java-version to view it.
[Email protected] ~]# java-version
Java Version "1.6.0_45"
Java (TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot (TM) 64-bit Server VM (build 20.45-b01, Mixed mode)
Reference Links:
Http://www.cnblogs.com/caosiyang/archive/2013/03/14/2959087.html
http://blog.csdn.net/lishoubin_198308/article/details/8169342
This article is from the "SQL Server MySQL" blog, so be sure to keep this source http://dwchaoyue.blog.51cto.com/2826417/1557616
Jdk-6u45-linux-x64.bin installation (Ameoba for MySQL)