分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 技术分享

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

发布时间:2023-09-06 01:37责任编辑:白小东关键词:暂无标签

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, securityLoading mirror speeds from cached hostfile * base: mirrors.cn99.com * extras: mirrors.shu.edu.cn * updates: mirrors.cn99.comAvailable Packagestelnet.x86_64 ???????????????????????????1:0.17-48.el6 ?????????????????????basetelnet-server.x86_64 ????????????????????1:0.17-48.el6 ?????????????????????base
[root@localhost ~]# yum install telnet-serverLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: mirrors.cn99.com * extras: mirrors.shu.edu.cn * updates: mirrors.cn99.comSetting up Install ProcessResolving Dependencies--> Running transaction check---> Package telnet-server.x86_64 1:0.17-48.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved================================================================================ Package ??????????????Arch ??????????Version ???????????????Repository ???Size================================================================================Installing: telnet-server ????????x86_64 ????????1:0.17-48.el6 ?????????base ?????????37 kTransaction Summary================================================================================Install ??????1 Package(s)Total download size: 37 kInstalled size: 54 kIs this ok [y/N]: yDownloading Packages:telnet-server-0.17-48.el6.x86_64.rpm ????????????????????| ?37 kB ????00:00 ????Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionWarning: 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, securityLoading mirror speeds from cached hostfile * base: mirrors.cn99.com * extras: mirrors.shu.edu.cn * updates: mirrors.cn99.comSetting up Install ProcessResolving Dependencies--> Running transaction check---> Package telnet.x86_64 1:0.17-48.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved==================================================================================================================================== Package ??????????????????????Arch ?????????????????????????Version ?????????????????????????????Repository ??????????????????Size====================================================================================================================================Installing: telnet ???????????????????????x86_64 ???????????????????????1:0.17-48.el6 ???????????????????????base ????????????????????????58 kTransaction Summary====================================================================================================================================Install ??????1 Package(s)Total download size: 58 kInstalled size: 109 kIs this ok [y/N]: yDownloading Packages:telnet-0.17-48.el6.x86_64.rpm ???????????????????????????????????????????????????????????????????????????????| ?58 kB ????00:00 ????Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning 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 ~]# 

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

原文地址:https://www.cnblogs.com/mingforyou/p/8297721.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved