Alibaba Cloud cannot be accessed after tomcat is configured

It’s been a long time since I wrote a blog, I’m a bit lazy, because I’m accumulating something, so I have a chance to make it up later.
I have read about Linux one after another and typed some commands, but I still feel that it has not been implemented. So I applied for an Alibaba Cloud server to do a summary, do programming practice, configuration and deployment.

Linux version: After CentOS7.3
configures tomcat, as for how to install and configure tomcat, you can find it on the Internet.
Then start tomcat, the startup is no problem, but the external can not be accessed.
Then find the solution:
1. Is the port occupied? First check whether the port is occupied by the netstat -tl command, and then directly change all 3 ports, 8080, 8005, and 8009 in the server.xml file under conf, and the restart still fails. access.
2. Considering the firewall issue, the direct firewall is off and it is still invalid.
3. After some tossing, refer to kingstudy , add custom rules under security in Alibaba Cloud, and then get the access.
as the picture shows:
Write picture description here

Then I was finally able to visit, it was not easy to toss for 2 hours.

Guess you like

Origin blog.csdn.net/u010857795/article/details/79415488