• -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]#


  • 相关阅读:
    __doPostback在客户端控件中的作用
    BlogEngine学习二:基于ICallbackEventHandler的轻量级Ajax方式
    JS操作XML数据备忘
    JS解析DataSet.GetXML()方法产生的xml
    JS中的prototype的使用方式
    实体类的二进制序列化
    PostgreSQL的.NET驱动程序Npgsql中参数对象的一个Bug
    PDF.NET的SQL日志
    PostgreSQL的PDF.NET驱动程序构建过程
    使用XSD编写具有智能提示的XML文件(以SQLMAP脚本为实例)
  • 原文地址:https://www.cnblogs.com/liangmm/p/13246079.html
Copyright © 2020-2023  润新知