[Linux] Install java and add JAVA_HOME, PATH

1. Download the java.gz file from the website.

2. Upload to the linux.

/root/itcast/jre-7u60-linux-x64.gz

3. Change name 

jre-7u60-linux-x64.gz to
jre-7u60-linux-x64.tar.gz

4. unzip the file to /usr/local/

tar zxvf /root/itcast/jre-7u60-linux-x64.tar.gz -C /usr/local

5. Change setting 

vi ~/.bash_profile

6. follow The ariticle to set up JAVA_HOMT and PATH

http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/

 

 

7. Change all files in one dir premission to 755

http://stackoverflow.com/questions/3740152/how-to-set-chmod-for-a-folder-and-all-of-its-subfolders-and-files-in-linux-ubunt



posted @ 2014-07-04 19:55  Zhentiw  阅读(230)  评论(0)    收藏  举报