安裝方式:yum
[root@master ~]# yum list |grep telnet
telnet-server.x86_64 1:0.17-59.el7 @base
telnet.x86_64 1:0.17-59.el7 base
[root@localhost /]# yum install telnet-server.x86_64
[root@localhost /]]# yum install telnet.x86_64
[root@localhost /]# yum list |grep xinetd
xinetd.x86_64 2:2.3.15-12.el7 @base
[root@localhost /]# yum install xinetd.x86_64
安裝完成后,將xinetd服務加入開機自啟動:
systemctl enable xinetd.service
將telnet服務加入開機自啟動:
systemctl enable telnet.socket
最后,啟動以上兩個服務即可:
systemctl start telnet.socket
systemctl start xinetd(或service xinetd start)