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/

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native