Deployment of the Web app----Dubbo Service consumer Web App War package deployed in Tomcat

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.