Linux centos 运行telnet命令command not found的解决方法
2022/7/22 5:23:24
本文主要是介绍Linux centos 运行telnet命令command not found的解决方法,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
Linux centos 运行telnet命令,出现下面的错误提示:
[root@localhost ~]# telnet 127.0.0.1 -bash: telnet: command not found
解决方法: 安装telnet服务
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
[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 ~]#
这篇关于Linux centos 运行telnet命令command not found的解决方法的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-12-18git仓库有更新,jenkins 自动触发拉代码怎么配置的?-icode9专业技术文章分享
- 2024-12-18Jenkins webhook 方式怎么配置指定的分支?-icode9专业技术文章分享
- 2024-12-13Linux C++项目实战入门教程
- 2024-12-13Linux C++编程项目实战入门教程
- 2024-12-11Linux部署Scrapy教程:新手入门指南
- 2024-12-11怎么将在本地创建的 Maven 仓库迁移到 Linux 服务器上?-icode9专业技术文章分享
- 2024-12-10Linux常用命令
- 2024-12-06谁看谁服! Linux 创始人对于进程和线程的理解是…
- 2024-12-04操作系统教程:新手入门及初级技巧详解
- 2024-12-04操作系统入门:新手必学指南