One of the solutions to remote connection failure to Alibaba Cloud TOMCAT

One of the solutions to remote connection failure to Alibaba Cloud TOMCAT

I spent 50 oceans renting an Alibaba Cloud ECS cloud server. After installing mysql, Tomcat, and sqlyog to the remote server, I want to try to connect and prepare for the next release of my own music website. Enter the IP locally: After 8080, I couldn’t connect. I tried a lot of methods and finally solved it like this

  • First, in the remote server, Tomcat is indeed opened, and also opened in the browser:Insert picture description here
  • Then I did not open the firewall of the remote server at all:Insert picture description here
  • I read many blogs, most of which are related to firewalls. Later, I saw one started from the cloud server console. I thought that port 8080 was not released when configuring the server! The solution is as follows: Open your own instance, which is the ECS you bought
    Access management
    Open the configuration rule in the security group of this instance
    Manually add access rules, that is, add the port number that you want to be accessed remotely and the IP that can access the remote server. The 0.0.0.0/0 in the source means all
    enter https://ip:8080 in the local browser to access it! (Ip is your own remote public network IP)

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_41446977/article/details/110347071