欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

centos8: 执行 telnet ip port 报错 No route to host

程序员文章站 2024-03-14 09:08:28
...

命名端口全部打开
firewall-cmd --add-port=8089/tcp
但是
telnet ip 8089 还是报错如下

[[email protected] bin]# telnet 192.168.71.130 10911
Trying 192.168.71.130...
telnet: connect to address 192.168.71.130: No route to host

因为防火墙没有生效
firewall-cmd的生效命令是

firewall-cmd --reload

重新执行命令成功

[[email protected] bin]# telnet 192.168.71.129 10911
Trying 192.168.71.129...
Connected to 192.168.71.129.
Escape character is '^]'.