linux centos 安装tomcat

引用
下载地址
http://apache.etoak.com/tomcat/tomcat-7/v7.0.27/bin/apache-tomcat-7.0.27.tar.gz

把下载的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://127.0.0.1:8080”
附加到系统启动

    #vi /etc/rc.d/rc.local #/usr/local/tomcat/bin/startup.sh(加到文件末尾)

猜你喜欢

转载自01jiangwei01.iteye.com/blog/1545849