转自:https://blog.csdn.net/qq_39231550/article/details/79858640

因为服务器上访问其它服务超时,所以要使用telnet试一下是否能访问通;

首先查看一下是否已安装telnet

rpm -qa | grep telnet

然后检查yum列表里面有什么

[root@YW-STG-FordEcall-Server-F ~]# yum list | grep telnet
telnet.x86_64                             1:0.17-65.el7_8                @updates
telnet-server.x86_64                      1:0.17-65.el7_8                @updates
dcap-tunnel-telnet.x86_64                 2.47.12-4.el7                  epel   
libguac-client-telnet.x86_64              1:1.1.0-1.el7                  epel   
libtelnet.x86_64                          0.21-5.el7                     epel   
libtelnet-devel.x86_64                    0.21-5.el7                     epel   
libtelnet-utils.x86_64                    0.21-5.el7                     epel   

安装telnet

yum install -y telnet-server.x86_64
yum install -y telnet.x86_64

测试如下即访问通

[root@YW-STG-FordEcall-Server-F ~]# telnet 192.168.176.11 80
Trying 192.168.176.11...
Connected to 192.168.176.11.
Escape character is '^]'.
^
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>501 Not Implemented</title>
</head><body>
<h1>Not Implemented</h1>
<p>^ to /index.html not supported.<br />
</p>
<hr>
<address>Apache/2.4.7 (Ubuntu) Server at 127.0.1.1 Port 80</address>
</body></html>
Connection closed by foreign host.

 

Logo

更多推荐