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



 

第六步:在当前文件夹下删除下载的文件

 


本站声明
本文转载自:http://liuna718-163-com.iteye.com/blog/2229783     作者:流浪鱼     发布日期:2015-07-27     本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。


 
© 2014-2016 ITdaan.com 粤ICP备14056181号