Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the problem of tomcat Port in telnet without access to linux

Shulou Source: shulou.com Published: 2022-06-03 06:41:10 10月04日 Update

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!

Tags: Ports firewalls fire protection content questions references codes values interests methods reasons slogans commands guys buddies that is more permissions examples articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology OPPO Reno Xiaomi Shulou Tech Info Shulou Information