How to solve the problem of tomcat Port in telnet without access to linux
This article mainly introduces in detail how to solve the tomcat port in telnet impassable linux. The sample code in this article is very detailed and has a certain reference value. Interested friends can refer to it.
Question:
Tomcat does not work under windows and telnet linux.
Reason:
Setting problem of Firewall under linux / etc/sysconfig/iptables
Solution:
1. Disable the firewall under linux
Service iptables stop
2. Add firewall access to tomcat port
Vim / etc/sysconfig/iptables
Copy a development command for port 22
-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 22-j ACCEPT
Add it at the end, change 22 to your tomcat port number, and you can.
3. Restart the service
Service iptables restart
4. Restart tomcat
These are the details of how to solve the problem of the tomcat port in telnet without access to linux. Have you gained anything after reading it? If you want to know more about it, welcome to the industry information!