阿里云centos7安装telnet服务
Centos7-安装telnet服务
-
[root@iZ8vb4ukto7mbo5xsnb2ecZ ~]# rpm -qa xinetd #检查是否安装过
xinetd-2.3.15-13.el7.x86_64
[root@iZ8vb4ukto7mbo5xsnb2ecZ ~]# rpm -qa telnet-server #检查是否安装过
telnet-server-0.17-64.el7.x86_64
[root@iZ8vb4ukto7mbo5xsnb2ecZ ~]# rpm -e --nodeps xinetd-2.3.15-13.el7.x86_64 telnet-server-0.17-64.el7.x86_64 #卸载已经存在的安装文件 -
[root@iZ8vb4ukto7mbo5xsnb2ecZ ~]# yum list |grep telnet
dcap-tunnel-telnet.x86_64 2.47.12-4.el7 epel
libguac-client-telnet.x86_64 1:0.9.14-1.el7 epel
libtelnet.x86_64 0.21-5.el7 epel
libtelnet-devel.x86_64 0.21-5.el7 epel
libtelnet-utils.x86_64 0.21-5.el7 epel
telnet.x86_64 1:0.17-64.el7 base
telnet-server.x86_64 1:0.17-64.el7 base -
[root@iZ8vb4ukto7mbo5xsnb2ecZ ~]# yum list |grep xinetd
xinetd.x86_64 2:2.3.15-13.el7 base
3,执行安装语句
- yum -y install telnet-server.x86_64
- yum -y install telnet.x86_64
- yum -y install xinetd.x86_64
4,设置开机自启:
- systemctl enable xinetd.service
- systemctl enable telnet.socket#这个命名如果第一次执行报错,再执行下即可。
5,开启service:
- systemctl start telnet.socket
- systemctl start xinetd