当前位置:   article > 正文

centos7使用 telnet命令验证端口是否映射成功_centos7中telnet成功显示什么

centos7中telnet成功显示什么

安装

[root@edunode248 home]# yum list |grep telnet
telnet.x86_64                               1:0.17-64.el7              @base
telnet-server.x86_64                        1:0.17-64.el7              base

#只安装客户端即可
[root@edunode248 home]# yum install telnet.x86_64
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

验证端口

### 下面这种情况说明端口没有映射
[root@edunode248 home]# telnet 124.152.228.81 1194
Trying 124.152.228.81...
telnet: connect to address 124.152.228.81: Connection refused

### 下面这种表示端口映射成功
[root@edunode248 home]# telnet 124.152.228.81 40080
Trying 124.152.228.81...
Connected to 124.152.228.81.
Escape character is '^]'.
Connection closed by foreign host.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/699279
推荐阅读
相关标签
  

闽ICP备14008679号