linux下安装tomcat
第一步:解压tomcat文件
[root@localhost software]# tar -zxvf apache-tomcat-7.0.63.tar.gz
第二步:解压后tomcat移动到/usr/local下
[root@localhost software]# mv apache-tomcat-7.0.63 /usr/local/
[root@localhost software]# cd /usr/local/apache-tomcat-7.0.63
[root@localhost apache-tomcat-7.0.63]# ls
bin lib logs RELEASE-NOTES temp work
conf LICENSE NOTICE RUNNING.txt webapps
第三步:执行startup.sh启动tomcat
[root@localhost apache-tomcat-7.0.63]# cd bin/
[root@localhost bin]# ./startup.sh
Using CATALINA_BASE: /usr/local/apache-tomcat-7.0.63
Using CATALINA_HOME: /usr/local/apache-tomcat-7.0.63
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-7.0.63/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/local/apache-tomcat-7.0.63/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.63/bin/tomcat-juli.jar
Tomcat started.
第四步:使用wget命令访问http://localhost:8080,查看启动是否成功
[root@localhost bin]# wget http://localhost:8080
--2015-07-23 00:55:47-- http://localhost:8080/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ?.ndex.html?
第五步:在浏览器中访问http://localhost:8080
第六步:在当前文件夹下删除下载的文件