Aliyun resolves why you cannot use a public IP address to access a deployed Javaweb project __web

Source: Internet
Author: User
Tags tomcat server aliyun

1, first in the Aliyun server to deploy a good Java environment, installation: JDK, database, Tomcat server, and then configure the Java operating environment

2. Package The Javaweb project into a. War file

3. Copy the. war file to the WebApps directory of the Tomcat server on the Aliyun server, for example, my: E:\Java\apache-tomcat-8.0.43\webapps

4. Click Startup.bat to start the Tomcat server (run the E:\Java\apache-tomcat-8.0.43\bin startup.bat file in the Tomcat Server bin directory)

5, in the local browser using localhost or local IP can be normal access to the project, but the use of Aliyun server public network IP but can not access the project

6, Problem analysis:

1. Most people may think that the Java environment in the Aliyun server is misconfigured, and then there is no clue, because this is not the key to the problem.

2. The second thought is the firewall, but after shutting down the firewall is still wrong, still can not access the project.

3. The port is occupied, the discovery is not the key point of the problem.

7, the solution steps:

1. Login to the Aliyun server background management, access the console, click on the deployment project that instance, click More--Select the following security group configuration


2. Click Configure Rules


3. Click the Add Security group rule and select "in direction" to fill in the information according to the picture


4. Click Add Security Group Rule, select "Out of direction" also so configure, the finished




8, the official case:


9, Problem solving

10, in any computer that can access the Internet to use the Aliyun services of the public network IP access to their own projects, such as: http://59.110.164.217:8080/Water/main.jsp such a writing is wrong: http://localhost : 8080/water/main.jsp,ip address must be public network IP, if the use of private IP is not accessible, OK, there are other problems, contact me.



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.