How to publish a web project to the Internet?
How can I publish a J2EE website with a back-end SQL database developed using JDK + myeclipse + Tomcat to the Internet? What procedures do you need?
Before publishing a Java Web program to the Internet, you must have the following prerequisites (assuming that the Tomcat server is used ).
Þ has a computer that can be connected to the Internet and is a fixed IP address (preferably a static IP address of the public network, or how others access the same LAN ).
A region has a domain name.
The supervisor must have a Java Web program running environment on a computer that can be connected to the Internet, that is, JDK and tomcat servers have been successfully installed.
Worker has a Java Web application that can run.
With the above conditions, you can publish an existing Java Web program to the Internet. The release procedure is as follows:
(1) apply for a domain name, such as www.aaaaaaaaa.com.
(2) direct the IP address recorded by the domain name to the IP address of your computer.
(3) create a directory on the local computer to store Java Web programs, such as D: \ jspweb.
(4) copy the Java Web program to the D: \ jspweb directory and rename it, for example, the name 01_cityinfo.
(5) change the Tomcat server port to 80. Change to: Open the server. xml file in the conf directory under the tomcat installation directory and find the following configuration code.
<Connector Port = "8080" protocol = "HTTP/1.1"
Connectiontimeout = "20000"
Redirectport = "8443" type = "regxph" text = "yourobjectname"/>
Modify the port attribute value in the <connector> element to 80.
(6) create a VM with the host name as the domain name applied. To create a file, open the server. xml file in the conf directory under the tomcat installation directory, find the
<Host name = "www.aaaaaaaaaaaa.com" appbase = "D:/jspweb"
Unpackwars = "true" autodeploy = "true"
Xmlvalidation = "false" xmlnamespaceaware = "false">
<Context Path = "/City" docbase = "01_cityinfo" DEBUG = '0' reaload = "true"/>
</Host>
The
(7) visit the site. Start the Tomcat server and enter "www.aaaaaaaaaaaaaa.com" in the address bar of the browser to access the published Java Web application.
You can also publish the website to the LAN Using this method, except that the name attribute in the
How to publish a web project to the Internet?
How can I publish a J2EE website with a back-end SQL database developed using JDK + myeclipse + Tomcat to the Internet? What procedures do you need?
Before publishing a Java Web program to the Internet, you must have the following prerequisites (assuming that the Tomcat server is used ).
Þ has a computer that can be connected to the Internet and is a fixed IP address (preferably a static IP address of the public network, or how others access the same LAN ).
A region has a domain name.
The supervisor must have a Java Web program running environment on a computer that can be connected to the Internet, that is, JDK and tomcat servers have been successfully installed.
Worker has a Java Web application that can run.
With the above conditions, you can publish an existing Java Web program to the Internet. The release procedure is as follows:
(1) apply for a domain name, such as www.aaaaaaaaa.com.
(2) direct the IP address recorded by the domain name to the IP address of your computer.
(3) create a directory on the local computer to store Java Web programs, such as D: \ jspweb.
(4) copy the Java Web program to the D: \ jspweb directory and rename it, for example, the name 01_cityinfo.
(5) change the Tomcat server port to 80. Change to: Open the server. xml file in the conf directory under the tomcat installation directory and find the following configuration code.
<Connector Port = "8080" protocol = "HTTP/1.1"
Connectiontimeout = "20000"
Redirectport = "8443" type = "regxph" text = "yourobjectname"/>
Modify the port attribute value in the <connector> element to 80.
(6) create a VM with the host name as the domain name applied. To create a file, open the server. xml file in the conf directory under the tomcat installation directory, find the
<Host name = "www.aaaaaaaaaaaa.com" appbase = "D:/jspweb"
Unpackwars = "true" autodeploy = "true"
Xmlvalidation = "false" xmlnamespaceaware = "false">
<Context Path = "/City" docbase = "01_cityinfo" DEBUG = '0' reaload = "true"/>
</Host>
The
(7) visit the site. Start the Tomcat server and enter "www.aaaaaaaaaaaaaa.com" in the address bar of the browser to access the published Java Web application.
You can also publish the website to the LAN Using this method, except that the name attribute in the