君不见长松卧壑困风霜,时来屹立扶明堂。这篇文章主要讲述#yyds干货盘点#解决 bash: telnet: command not found 问题相关的知识,希望能为你提供帮助。
目录
??问题??
??解决??
问题执行命令 telnet 命令时,遇到了如下提示信息:
-bash: telnet: command not found确切的说,这不能算是报错。上网查了一下解决方法,都太麻烦了。于是,自己把解决方法记录一下,方便下次查阅。
解决【#yyds干货盘点#解决 bash: telnet: command not found 问题】执行安装命令:
yum install telnet.x86_64结果又遇到如下报错:
Loaded plugins: fastestmirror原来是需要切换到 root 用户,切换后再执行上述命令,搞定。
You need to be root to perform this command.
输出如下信息表示安装成功:
Loaded plugins: fastestmirror接下来,测试一下 telnet 命令是否好用,执行如下命令:
Loading mirror speeds from cached hostfile
baijiayun | 2.9 kB 00:00:00
base | 3.6 kB 00:00:00
docker-ce-stable | 3.5 kB 00:00:00
epel | 4.7 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package telnet.x86_64 1:0.17-66.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================================================
Installing:
telnet x86_64 1:0.17-66.el7 updates 64 k
Transaction Summary
==================================================================================================================================================================================
Install 1 Package
Total download size: 64 k
Installed size: 113 k
Is this ok [y/d/N]: y
Downloading packages:
telnet-0.17-66.el7.x86_64.rpm | 64 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:telnet-0.17-66.el7.x86_64 1/1
Verifying : 1:telnet-0.17-66.el7.x86_64 1/1
Installed:
telnet.x86_64 1:0.17-66.el7
Complete!
telnet www.baidu.com 443输出如下信息表示命令执行成功:
Trying 220.181.38.150...好了,至此,telnet 工具就安装成功了,是不是非常 easy ?
Connected to www.baidu.com.
Escape character is ^].
作者简介:
推荐阅读
- 模拟逻辑卷扩容
- 应用运维工程师基础能力总结
- Linux基础操作(如何在 Linux 中复制文件夹())
- Apache优化相关#yyds干货盘点#
- Linux系统数据备份不再头疼,Rdiff-backup来帮忙!
- Linux 示例中的 apt 命令大全,建议收藏!
- #私藏项目实操分享# Ngnix--day01
- Linux 的无障碍设置如何操作()
- 如何在Linux解压缩(打开)Gz 文件()