提示-bash: telnet: command not found的解决方法

Linux centos 运行telnet命令,出现下面的错误提示:[root@localhost ~]# telnet 127.0.0.

Linux centos 运行telnet命令,出现下面的错误提示:

[root@localhost ~]# telnet 127.0.0.1

-bash: telnet: command not found

centos、ubuntu安装telnet命令的方法

yum list telnet*              列出telnet相关的安装包
yum install telnet-server         安装telnet服务
yum install telnet.*           安装telnet客户端

[root@localhost ~]# yum list telnet*

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

* base: mirrors.cn99.com

* extras: mirrors.shu.edu.cn

* updates: mirrors.cn99.com

Available Packages

telnet.x86_64 1:0.17-48.el6 base

telnet-server.x86_64 1:0.17-48.el6 base

[root@localhost ~]# yum install telnet-server

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

* base: mirrors.cn99.com

* extras: mirrors.shu.edu.cn

* updates: mirrors.cn99.com

Setting up Install Process

Resolving Dependencies

–> Running transaction check

—> Package telnet-server.x86_64 1:0.17-48.el6 will be installed

–> Finished Dependency Resolution

Dependencies Resolved

=====================================================================

Package Arch Version Repository Size

=====================================================================

Installing:

telnet-server x86_64 1:0.17-48.el6 base 37 k

Transaction Summary

=====================================================================

Install 1 Package(s)

Total download size: 37 k

Installed size: 54 k

Is this ok [y/N]: y

Downloading Packages:

telnet-server-0.17-48.el6.x86_64.rpm | 37 kB 00:00

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Warning: RPMDB altered outside of yum.

Installing : 1:telnet-server-0.17-48.el6.x86_64 1/1

Verifying : 1:telnet-server-0.17-48.el6.x86_64 1/1

Installed:

telnet-server.x86_64 1:0.17-48.el6

Complete!

[root@localhost ~]#

[root@localhost ~]# yum install telnet.*

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

* base: mirrors.cn99.com

* extras: mirrors.shu.edu.cn

* updates: mirrors.cn99.com

Setting up Install Process

Resolving Dependencies

–> Running transaction check

—> Package telnet.x86_64 1:0.17-48.el6 will be installed

–> Finished Dependency Resolution

Dependencies Resolved

=====================================================================

Package Arch Version Repository Size

=====================================================================

Installing:

telnet x86_64 1:0.17-48.el6 base 58 k

Transaction Summary

=====================================================================

Install 1 Package(s)

Total download size: 58 k

Installed size: 109 k

Is this ok [y/N]: y

Downloading Packages:

telnet-0.17-48.el6.x86_64.rpm | 58 kB 00:00

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing : 1:telnet-0.17-48.el6.x86_64 1/1

Verifying : 1:telnet-0.17-48.el6.x86_64 1/1

Installed:

telnet.x86_64 1:0.17-48.el6

Complete!

[root@localhost ~]#

免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://itzsg.com/10389.html

(0)
上一篇 2023年 4月 22日 下午11:58
下一篇 2023年 4月 22日 下午11:58

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

联系我们YX

mu99908888

在线咨询: 微信交谈

邮件:itzsgw@126.com

工作时间:时刻准备着!

关注微信