新版本的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命令了
本站代码教程仅供学习交流使用请勿商业运营,严禁二次倒卖,否则ban账号处理!
© 版权声明
THE END
请登录后查看评论内容