安装ssh
# 安装ssh客户端
sudo apt-get install openssh-client
# 安装ssh服务器端
sudo apt-get install openssh-server
# 启动ssh服务
sudo service sshd start
JDK-7u79
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
下载jdk-7u79-linux-x64.tar.gz(见install_ubuntu文件夹中)
解压到目录
解压文件放置到/usr/local/下
sudo mv jdk1.7.0_79/ /usr/local
设置环境变量
vim /etc/profile (一定得/etc/profile,不能设置到~/.bashrc中!)
export JAVA_HOME=/usr/local/jdk1.7.0_79
export JRE_HOME=/usr/local/jdk1.7.0_79/jre
export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$PATH
source /etc/profile
测试
java -version