1、先检查CentOS7.0是否已经安装以下几个安装包:telnet-server、telnet、xinetd。命令如下:
rpm -qa |grep telnet-server
rpm -qa |grep telnet
rpm -qa |grep xinetd
若没有则执行yum install 安装
2、安装完成后,将xinetd服务加入开机自启动:
systemctl enable telnet.socket
3、重启服务,由于telnet服务也是由xinetd守护的,所以安装完telnet-server,要启动telnet服务就必须重新启动xinetd 。
systemctl start telnet.socket
systemctl start xinetd (或service xinetd start)
附配置文件:
/etc/xinetd.d/telnet
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}