ip:192.168.2.61
Deployment container: apache-tomcat-7.0.57
Port: 8080
Application: Edu-web-boss.war
1, download (or upload) The latest version of the TOMCAT7:
$wget http://mirrors.hust.edu.cn/apache/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.57.tar.gz
2. Specification installation directory:
/home/wusc/edu/web/xxx-tomcat
Such as:
/home/wusc/edu/web/boss-tomcat
3. Decompression and Installation
$ mkdir–p/home/wusc/edu/web
$ TAR-ZXVF apache-tomcat-7.0.57.tar.gz
$ MV Apache-tomcat-7.0.57/home/wusc/edu/web/boss-tomcat
4. Remove all files from the/home/wusc/edu/web/boss-tomcat/webapps directory:
$ rm-rf/home/wusc/edu/web/boss-tomcat/webapps/*
5, Upload Dubbo service Consumer Web application War package Edu-web-boss.war
To/home/wusc/edu/web/boss-tomcat/webapps
6, firewall open 8080 port, with the root user to modify the/etc/sysconfig/iptables,
# Vi/etc/sysconfig/iptables
Increase:
# # boss-tomcat:8080
-A input-m state--state new-m tcp-p TCP--dport 8080-j ACCEPT
To restart the firewall:
# Service Iptables Restart
7. Tomat Memory Settings:
$ vi/home/wusc/edu/web/boss-tomcat/bin/catalina.sh
#!/bin/sh
java_opts= '-xms128m-xmx512m-xx:permsize=128m '
8. Start TOMAT7
$/home/wusc/edu/web/boss-tomcat/bin/startup.sh
9. Browse Http://192.168.2.61:8080/edu-web-boss
10. Configure Tomcat Boot:
To edit the/etc/rc.local file in the virtual host, add:
Su-wusc-c '/home/wusc/edu/web/boss-tomcat/bin/startup.sh '
Deployment of the Web app----Dubbo Service consumer Web App War package deployed in Tomcat