Deployment of peanut shell + Tomcat + javaweb Project

Source: Internet
Author: User

Recently, the customer has been engaged in projects. The customer is eager to see the results. The boss always forgets to buy a domain name. There is no way to register a free domain name through the peanut shell for configuration. Because the network domain name is configured for the first time, so take a note.

 

First, download the Installation Software of the peanut shell. After the installation is complete by default, You need to register the software. after entering the mailbox, the peanut shell official website will assign us a domain name. The style is roughly xx.gicp.net.

Verify that JDK has been installed on the server. After Tomcat is configured with the environment, you can configure the server. First, add the project to the webapp directory of Tomcat and modify the server. XML file,

1. Change the port number to 80.

<Connector Port = "80"Protocol = "HTTP/1.1"
Connectiontimeout = "20000"
Redirectport = "8443" type = "regxph" text = "yourobjectname"/>

2. Modify the host name for your dynamic domain name, as shown below,And add <context Path = "" docbase = "Nol" reloadable = "true"/>The docbase value is the name of the project under your webapp.

<Host Name = "healthmanage.gicp.net"Appbase = "webapps"
Unpackwars = "true" autodeploy = "true"
Xmlvalidation = "false" xmlnamespaceaware = "false">
<Context Path = "" docbase = "Nol" reloadable = "true"/>

3. Modify the value of engine defaulthost to your dynamic domain name, as shown below:

<Engine name = "Catalina" defaulthost = "healthmanage.gicp.net">

Again, map the port in the vro, as shown in the following figure (the figure is not good enough ):

Name
Private IP 192.168.0. 124
Protocol type TCP
Private Port 80
Public port 80
Schedule always


Start the peanut shell and start tomact to access
Http://healthmanage.gicp.netNow

Related Article

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.