CentOS6.5安装tomcat7

把下载的apache-tomcat-7.0.19.tar.gz文件上传到服务器的根目录

   #tar zxvf apache-tomcat-7.0.19.tar.gz

   #mv apache-tomcat-7.0.19 apache-tomcat

   #vim /etc/profile

   在文件末尾添加:

   export TOMCAT_HOME=/apache-tomcat/

   #source /etc/profile

   #cd /apache-tomcat/bin/

   #chmod 777 *.sh

   #bash catalina.sh start

   测试:

在客户端输入服务器的ip:8080,如下:“http://192.168.1.193:8080”

参考:http://www.cnblogs.com/hantianwei/archive/2012/11/06/2757759.html

原文地址:https://www.cnblogs.com/zhangwei595806165/p/3785178.html