centos6.5配置tomcat7

版权声明:Mr.O版权所有 转载请标明出处 https://blog.csdn.net/qq_28189423/article/details/89435072

1、配置好JDK7

https://blog.csdn.net/qq_28189423/article/details/89434171

2、解压tomcat

tar -zxvf apache-tomcat-7.0.50.tar.gz

解压后会在当前目录下生成对应的目录

apache-tomcat-7.0.50

3、移动当前目录到/usr 下

mv apache-tomcat-7.0.50 /usr

4、启动tomcat

cd /usr/apache-tomcat-7.0.50/bin

./startup.sh

5、开启8080端口

/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT

6、检测服务是否正常运行

猜你喜欢

转载自blog.csdn.net/qq_28189423/article/details/89435072