Mac下安装telnet命令

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

安装 homebrew

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

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

查看homebrew 是否安装成功

momodeMacBook-Pro:~ Apibug$ 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
momodeMacBook-Pro:~ Apibug$ 

使用 homebrew 安装telnet

brew install telnet

查看是否安装成功

shifeiyandeMacBook-Pro:~ Apibug$ telnet
telnet> 

到这一步就安装完成了

telnet使用

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

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

© 版权声明
THE END
喜欢就支持一下吧
点赞0赞赏
分享
评论 抢沙发

请登录后发表评论