逐梦论坛's Archiver

shillan 发表于 2019-7-14 08:41

RHEL/CentOS安装telnet的方法(在线和rpm包安装)

在执行telnet时会提示命令不存在,此时输入命令 rpm -qa telnet-server ,若无输出内容,则表示没有安装。
[b]1.在线安装[/b]
分别执行如下两个命令:
[quote]yum install telnet
yum install telnet-server[/quote]
2.rpm包安装
下载对应的rpm包:
telnet-server-0.17-48.el6.x86_64.rpm:[url]http://vault.centos.org/6.7/os/x86_64/Packages/telnet-server-0.17-48.el6.x86_64.rpm[/url]
telnet-0.17-48.el6.x86_64.rpm:[url]http://vault.centos.org/6.7/os/x86_64/Packages/telnet-0.17-48.el6.x86_64.rpm[/url]
然后执行如下命令:
[quote]rpm -ivh telnet-0.17-48.el6.x86_64.rpm
rpm -ivh telnet-server-0.17-48.el6.x86_64.rpm[/quote]
在执行 rpm -ivh telnet-server-0.17-48.el6.x86_64.rpm 命令时 ,如果遇到如下警告:
[quote]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[/quote]
解决方式就是  先安装xinetd包:[url]http://vault.centos.org/6.7/os/x86_64/Packages/xinetd-2.3.14-39.el6_4.x86_64.rpm[/url]
执行如下命令:
[quote]rpm -ivh xinetd-2.3.14-39.el6_4.x86_64.rpm[/quote]
安装成功后再安装telnet-server
然后启动 xinetd:
[quote]service xinetd start[/quote]
至此安装完成。

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.