美文网首页程序开发
Mac OS 安装telnet命令

Mac OS 安装telnet命令

作者: shifeiyan | 来源:发表于2019-03-07 20:00 被阅读0次

    新版本的macos 取消了内置的telnet命令,下面介绍一下如何安装:

    telnet安装

    安装 homebrew

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    

    这一步,输入密码之后一直回车就可以了

    查看homebrew 是否安装成功

    shifeiyandeMacBook-Pro:~ shifeiyan$ brew help
    Example usage:
      brew search [TEXT|/REGEX/]
      brew info [FORMULA...]
      brew install FORMULA...
      brew update
      brew upgrade [FORMULA...]
      brew uninstall FORMULA...
      brew list [FORMULA...]
    
    Troubleshooting:
      brew config
      brew doctor
      brew install --verbose --debug FORMULA
    
    Contributing:
      brew create [URL [--no-fetch]]
      brew edit [FORMULA...]
    
    Further help:
      brew commands
      brew help [COMMAND]
      man brew
      https://docs.brew.sh
    shifeiyandeMacBook-Pro:~ shifeiyan$ 
    

    使用 homebrew 安装telnet

    brew install telnet
    

    查看是否安装成功

    shifeiyandeMacBook-Pro:~ shifeiyan$ telnet
    telnet> 
    

    到这一步就安装完成了

    telnet使用

    shifeiyandeMacBook-Pro:~ shifeiyan$ telnet www.baidu.com 80
    Trying 115.239.210.27...
    Connected to www.a.shifen.com.
    Escape character is '^]'.
    

    之后就可以开心的使用telnet命令了

    相关文章

      网友评论

        本文标题:Mac OS 安装telnet命令

        本文链接:https://www.haomeiwen.com/subject/bixmuqtx.html