• bash: telnet: command not found (Linux安装telnet)


    问题描述:

    centos 系统没有 telnet 命令

    bash: telnet: command not found


      

    1.安装telnet服务 (3个)

    yum install  xinetd  telnet  telnet-server -y

    修改配置文件():

    # 修改/etc/xinetd.d/telnet
    # 将disable = yes 值改为no
    disable         = no

    2.配置开机启动

    chkconfig telnet on

    3.需要激活xinetd服务

    # service  xinetd restart    或者  #/etc/rc.d/init.d/xinetd  restart

    4.测试是否ok

    这是ok的情况。不ok的时候,会提示连接被拒绝。

    [heliang@localhost ~]$ telnet 127.0.0.1
    Trying 127.0.0.1...
    Connected to 127.0.0.1.
    Escape character is '^]'.
    CentOS release 6.9 (Final)
    Kernel 2.6.32-696.el6.x86_64 on an x86_64

      


     另外一个安装版本,是在 腾讯的虚拟云主机下面的 centos系统(命令略有不同

    1.安装telnet服务

    yum install  xinetd  telnet  telnet-server -y

    修改配置文件():

    # 修改/etc/xinetd.d/telnet
    # 将disable = yes 值改为no
    disable         = no

    2.安装完成后,将xinetd服务加入开机自启动:

    systemctl enable xinetd.service

    3.将telnet服务加入开机自启动:

    systemctl enable telnet.socket

    4.最后,启动以上两个服务即可:

    由于telnet服务也是由xinetd守护的,所以安装完telnet-server,要启动telnet服务就必须重新启动xinetd 。

    systemctl start telnet.socket
    systemctl start xinetd(或service xinetd start)
  • 相关阅读:
    https://developer.aliyun.com/ebook?utm_content=g_1000256420
    形容词在句子中的位置
    顺风水水
    https://www.youtube.com/watch?v=pVIywLXDuRo 有趣到流泪
    经济机器是怎样运行的 (时长30分钟) Ray Dalio
    https://codepen.io/deadzq-the-decoder/pen/qBqQYXg
    Vue 10 test
    vue day2
    codepen学Vue day2
    代理总结更新
  • 原文地址:https://www.cnblogs.com/music-liang/p/11882308.html
Copyright © 2020-2023  润新知