When writing a book a while ago, involves a section about server building, need to involve a lot of scope, hereby take one of the simplest to share to everyone, hope can help some people
Do you often worry about not having your own website or domain name? Or have their own server but no domain name, to apply for domain name filing to the relevant departments stamp is not particularly troublesome? Today teaches you a simple way to skip these complex
a trivial process, easily have their own domain name, website!
This article is based on Tomcat , Net123 For example, let's talk about the preparation method
Preparation: A tomcat and a net123 client;
The first thing you need to do is write a test project Java Web, which is compiled and deployed through development tools and accessed through local localhost to see if connectivity
There are several ways to open Tomcat, this article takes the installation version as an example
Directly click the Start button in the bottom left corner of the computer, and then the right gray column to find the run, or use the shortcut key CTRL and ALT key in the middle of the key, also called Windows window key, press and hold it in the R key
Then find Tomcat in the service item and choose the boot mode:
Enter localhost under any browser to appear kitten is OK, in writing a test Java Web project to do site home page:
To view the main page content:
OK, start opening net123 to start our mapping work, configure related information
For an intranet port view, first look at the path of your local tomcat service configuration, such as the blogger's:
To view ports:
After configuration Click Confirm Save, need to consume an n currency, but also need real name authentication, real name authentication is simple, buy a 80N currency package can be solved, 8 dollars to fix! And then save, net123 will start mapping as
Fruit found that the hint is not connected or check the network, you need to close similar 360 security software, shut down net123, restart can, if prompted to link the problem, please wait patiently, this is net123 DNS domain name resolution
need to spend the time.
After the success, the Avatar will have a smiley face, and then click on the outside network or enter the address, you can find that we have been configured successfully, but the main page of the jump is Tomcat's homepage, this time we need to redirect the main page, which
Time We need to modify a configuration, the Server.xml file under the Tomcat installation path conf
Add and modify the following:
After configuring the Tomcat service to restart, the browser types the localhost effect:
After the successful external network mapping, the detection effect:
The difference between intranet access and external network access effect and comparison:
This is just beginning to contact with a little rusty, after more contact will be very skilled, it is also very convenient, the external network can access the condition is the need for local services online, that is, the start of the Tomcat service, without shutting down the premise and net123
Guest Online, the local network is normal, it can be accessed by the extranet, otherwise it will not be able to access its own local mapping server
Exempt from the record \ No approval number \ Cheap teach you to build your own website \ DNS resolution \ Super-practical port map forwarding