centos7 安装xinetd,telnet

参考: https://www.cnblogs.com/hxphp/p/6700159.html

安装方式: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       )

测试:

[root@VM_6_21_centos ~]#     netstat -tnl |grep 23 
tcp        0      0 0.0.0.0:23              0.0.0.0:*               LISTEN  

你可能感兴趣的:(Linux系列)