Linux centos 运行telnet命令command not found的解决方法
Linux centos 运行telnet命令,出现下面的错误提示:
1 2 | [root @localhost ~]# telnet 127.0 . 0.1 -bash: telnet: command not found |
解决方法: 安装telnet服务
centos、ubuntu安装telnet命令的方法
1 2 3 | yum list telnet* 列出telnet相关的安装包 yum install telnet-server 安装telnet服务 yum install telnet.* 安装telnet客户端 |
1 2 3 4 5 6 7 8 9 | [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 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | [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 ~]# |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | [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 ~]# |
分类:
6、运维 / Linux
标签:
软件
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· .NET Core 中如何实现缓存的预热?
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 如何调用 DeepSeek 的自然语言处理 API 接口并集成到在线客服系统
· 【译】Visual Studio 中新的强大生产力特性