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 accessHttp://healthmanage.gicp.netNow