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


    telnet 127.0.0.1 2181
    -bash: telnet: command not found

    解决方法: 安装telnet服务

    centos、ubuntu安装telnet命令的方法.

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



    [root@192 bin]# yum list telnet*
    Loaded plugins: fastestmirror
    Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
    Determining fastest mirrors
     * base: mirrors.huaweicloud.com
     * extras: mirrors.bfsu.edu.cn
     * updates: mirrors.bfsu.edu.cn
    Available Packages
    telnet.x86_64                                                                          1:0.17-64.el7                                                                    base
    telnet-server.x86_64                                                                   1:0.17-64.el7                                                                    base
    [root@192 bin]# yum install telnet-server
    Loaded plugins: fastestmirror
    Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
    base                                                                                                                                                 | 3.6 kB  00:00:00     
    extras                                                                                                                                               | 2.9 kB  00:00:00     
    updates                                                                                                                                              | 2.9 kB  00:00:00     
    (1/4): base/7/x86_64/group_gz                                                                                                                        | 153 kB  00:00:00     
    (2/4): extras/7/x86_64/primary_db                                                                                                                    | 194 kB  00:00:00     
    (3/4): updates/7/x86_64/primary_db                                                                                                                   | 3.0 MB  00:00:04     
    (4/4): base/7/x86_64/primary_db                                                                                                                      | 6.1 MB  00:00:06     
    Loading mirror speeds from cached hostfile
     * base: mirrors.huaweicloud.com
     * extras: mirrors.bfsu.edu.cn
     * updates: mirrors.bfsu.edu.cn
    Resolving Dependencies
    --> Running transaction check
    ---> Package telnet-server.x86_64 1:0.17-65.el7_8 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ============================================================================================================================================================================
     Package                                     Arch                                 Version                                       Repository                             Size
    ============================================================================================================================================================================
    Installing:
     telnet-server                               x86_64                               1:0.17-65.el7_8                               updates                                41 k

    Transaction Summary
    ============================================================================================================================================================================
    Install  1 Package

    Total download size: 41 k
    Installed size: 55 k
    Is this ok [y/d/N]: y
    Downloading packages:
    telnet-server-0.17-65.el7_8.x86_64.rpm                                                                                                               |  41 kB  00:00:00     
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Installing : 1:telnet-server-0.17-65.el7_8.x86_64                                                                                                                     1/1
      Verifying  : 1:telnet-server-0.17-65.el7_8.x86_64                                                                                                                     1/1

    Installed:
      telnet-server.x86_64 1:0.17-65.el7_8                                                                                                                                      

    Complete!
    [root@192 bin]# yum install telnet.*
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirrors.huaweicloud.com
     * extras: mirrors.bfsu.edu.cn
     * updates: mirrors.bfsu.edu.cn
    Resolving Dependencies
    --> Running transaction check
    ---> Package telnet.x86_64 1:0.17-65.el7_8 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ============================================================================================================================================================================
     Package                               Arch                                  Version                                           Repository                              Size
    ============================================================================================================================================================================
    Installing:
     telnet                                x86_64                                1:0.17-65.el7_8                                   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-65.el7_8.x86_64.rpm                                                                                                                      |  64 kB  00:00:00     
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Installing : 1:telnet-0.17-65.el7_8.x86_64                                                                                                                            1/1
      Verifying  : 1:telnet-0.17-65.el7_8.x86_64                                                                                                                            1/1

    Installed:
      telnet.x86_64 1:0.17-65.el7_8                                                                                                                                             

    Complete!
    [root@192 bin]#


  • 相关阅读:
    spring-cloud-feign案例
    spring-cloud-hystrix熔断
    科技创业公司最爱的9大工具箱
    近期入手一树莓派卡片机,体验了一下它的强大,写篇报告
    Android应用盈利广告平台的嵌入方法详解
    UnityVS(Visual Studio Tools For Unity)的安装与使用
    unity3d快捷键大全
    Unity3D Android手机开发环境配置,可真机发布调试
    谷歌最近收购的机器人公司
    Microsoft Robotics Developer Studio 4
  • 原文地址:https://www.cnblogs.com/liangmm/p/13246079.html
Copyright © 2020-2023  润新知