进到/usr/local/apache执行命令
wget http://mirrors.cnnic.cn/apache/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.57.tar.gz
然后解压
tar
-
zxvf
apache-tomcat-7.0.57.tar.gz
查看
[[email protected] apache]# ls
apache-tomcat-7.0.57 apache-tomcat-7.0.57.tar.gz
[[email protected] apache]# cd apache-tomcat-7.0.57
[[email protected] apache-tomcat-7.0.57]# ls
bin lib logs RELEASE-NOTES temp work
conf LICENSE NOTICE RUNNING.txt webapps
[[email protected] apache-tomcat-7.0.57]#
下载jdk
[[email protected] local]# mkdir java
[[email protected] local]# ls
aegis bin games java lib64 sbin src
apache etc include lib libexec share
[[email protected] local]# cd java
[[email protected] java]# wget http://download.oracle.com/otn-pub/java/jdk/7u71-b14/jdk-7u71-linux-x64.tar.gz
解压jdk
然后一直不行。
最后直接在window下,下载好文件 然后通过ssh传到阿里云服务器
如图
这次终于解压成功!