码迷,mamicode.com
首页 > Web开发 > 详细

telnet IP:ERROR

时间:2017-07-05 21:14:09      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:net   ble   class   kconfig   for   sel   --   关闭防火墙   logs   

实验环境:CentOS6.8

主机:172.16.xxx.xxx:80

客户端:172.16.xxx.xxx

[root@www ~18:32:27]#telnet 172.16.xxx.xxx 80
Trying 172.16.252.242...
telnet: connect to address 172.16.252.242: Connection refused

解决方法:关闭SELinux:setenforce 0

     关闭防火墙策略:iptables -F

     启动telnet服务: chkconfig telnet on

     最好也启动xinetd监控服务:service xinetd start

[root@www ~18:33:36]#chkconfig --list|grep "telnet"  #检查telnet服务
    telnet:            off
[root@www ~18:34:03]#chkconfig telnet on
[root@www ~18:34:28]#chkconfig --list |grep "telnet"
    telnet:            on

[root@www ~18:29:40]#yum -y install xinetd    #安转xinetd服务

[root@www ~18:42:57]#service xinetd status
xinetd (pid 1452) is running...

 

telnet IP:ERROR

标签:net   ble   class   kconfig   for   sel   --   关闭防火墙   logs   

原文地址:http://www.cnblogs.com/wzhuo/p/6881285.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!