[root@dba01 ~]# yum install telnet*
[root@dba05 ~]# service xinetd status
xinetd 已停
[root@dba05 ~]# service xinetd start
正在启动 xinetd: [确定]
验证
[root@dba05 ~]# service xinetd status
xinetd (pid 14012) 正在运行...
[root@dba05 ~]# telnet 172.16.20.206 23
Trying 172.16.20.206...
telnet: connect to address 172.16.20.206: Connection refused
删除disabled即可
[root@dba05 ~]# vi /etc/xinetd.d/telnet
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
重启
[root@dba05 ~]# service xinetd restart
停止 xinetd: [确定]
正在启动 xinetd: [确定]
测试
[root@dba05 ~]# telnet 172.16.20.206 23
Trying 172.16.20.206...
Connected to 172.16.20.206.
Escape character is '^]'.
CentOS release 6.5 (Final)
Kernel 2.6.32-642.3.1.el6.x86_64 on an x86_64
login:
Trying 172.16.20.206...
Connected to 172.16.20.206.
Escape character is '^]'.
CentOS release 6.5 (Final)
Kernel 2.6.32-642.3.1.el6.x86_64 on an x86_64
login:
成功!!