Board logo

标题: RHEL/CentOS安装telnet的方法(在线和rpm包安装) [打印本页]

作者: shillan    时间: 2019-7-14 08:41     标题: RHEL/CentOS安装telnet的方法(在线和rpm包安装)

在执行telnet时会提示命令不存在,此时输入命令 rpm -qa telnet-server ,若无输出内容,则表示没有安装。
1.在线安装
分别执行如下两个命令:
yum install telnet
yum install telnet-server

2.rpm包安装
下载对应的rpm包:
telnet-server-0.17-48.el6.x86_64.rpm:http://vault.centos.org/6.7/os/x ... 7-48.el6.x86_64.rpm
telnet-0.17-48.el6.x86_64.rpm:http://vault.centos.org/6.7/os/x ... 7-48.el6.x86_64.rpm
然后执行如下命令:
rpm -ivh telnet-0.17-48.el6.x86_64.rpm
rpm -ivh telnet-server-0.17-48.el6.x86_64.rpm

在执行 rpm -ivh telnet-server-0.17-48.el6.x86_64.rpm 命令时 ,如果遇到如下警告:
warning: telnet-server-0.17-48.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
error: Failed dependencies:
xinetd is needed by telnet-server-1:0.17-48.el6.x86_64

解决方式就是  先安装xinetd包:http://vault.centos.org/6.7/os/x ... 39.el6_4.x86_64.rpm
执行如下命令:
rpm -ivh xinetd-2.3.14-39.el6_4.x86_64.rpm

安装成功后再安装telnet-server
然后启动 xinetd:
service xinetd start

至此安装完成。




欢迎光临 逐梦论坛 (http://temp2023.zhumeng.org/) Powered by Discuz! 7.2