[cpicapp@iZuf6gl8wxyasxnj79v1g2Z ~]$ tar -zxvf jdk-7u79-linux-x64.tar.gz
设置环境变量
[cpicapp@iZuf6gl8wxyasxnj79v1g2Z ~]$ ls
jdk1.7.0_79 jdk-7u79-linux-x64.tar.gz
[cpicapp@iZuf6gl8wxyasxnj79v1g2Z ~]$ su root
Password:
[root@iZuf6gl8wxyasxnj79v1g2Z cpicapp]# vim /etc/profile