首页 > 代码库 > CentOS 7安装tomcat 7

CentOS 7安装tomcat 7


系统环境

CentOS Linux release 7.2.1511

tomcat

apache-tomcat-7.0.72.tar.gz

下载地址:

http://archive.apache.org/dist/tomcat/


安装前提

系统安装JDK6+

参考:

http://www.linuxdiyf.com/linux/13204.html

安装tomcat

tar -zxv -f apache-tomcat-7.0.72.tar.gz


启动tomcat

[root@localhost tomcat]# /usr/tomcat/apache-tomcat-7.0.72/bin/startup.sh 

Using CATALINA_BASE:   /usr/tomcat/apache-tomcat-7.0.72

Using CATALINA_HOME:   /usr/tomcat/apache-tomcat-7.0.72

Using CATALINA_TMPDIR: /usr/tomcat/apache-tomcat-7.0.72/temp

Using JRE_HOME:        /usr/java/jdk1.7.0_79

Using CLASSPATH:       /usr/tomcat/apache-tomcat-7.0.72/bin/bootstrap.jar:/usr/tomcat/apache-tomcat-7.0.72/bin/tomcat-juli.jar

Tomcat started.

启动成功!


防火墙开放8080端口

vim + /etc/sysconfig/iptables-config

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT


检验Tomcat安装运行

http://192.168.153.100:8080/


本文出自 “技术进阶” 博客,请务必保留此出处http://vipnoon.blog.51cto.com/7589908/1860194

CentOS 7安装tomcat 7