MACOS安装brew和Telnet

首先安装brew 

 

目前 GitHub 的 gist 访问不了,所以获取不到安装的脚本文件。
那就使用已经全部替换为国内地址的命令吧,运行下面自动脚本:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
MACOS安装brew和Telnet_第1张图片接下来是这样的,你会看到一般选择2 清华大学的下载镜像,接下来等几分钟就安装好啦!

查看homebrew 是否安装成功

MacBook:$ 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
MacBook:$ 

使用 homebrew 安装telnet

brew install telnet

查看是否安装成功

MacBook:$ telnet
telnet> 

到这一步就安装完成了

telnet使用

mac ~ :telnet www.baidu.com 80   
Trying 14.215.177.38...
Connected to www.a.shifen.com.
Escape character is '^]'.

你可能感兴趣的:(macos,github)