在MacOS操作系统中安装telnet的方法

转载请注明出处:http://blog.csdn.net/dongdong9223/article/details/106674890
本文出自【我是干勾鱼的博客

1 安装homebrew

首先需要安装homebrew,如下:

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

2 检查安装结果

检查是否安装成功:

$ 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

3 安装telnet

安装telnet:

brew install telnet

如下所示:

$ brew install telnet
Updating Homebrew...
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 66, done.
remote: Counting objects: 100% (66/66), done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 731406 (delta 41), reused 56 (delta 35), pack-reused 731340
Receiving objects: 100% (731406/731406), 295.86 MiB | 818.00 KiB/s, done.
Resolving deltas: 100% (483479/483479), done.
Checking out files: 100% (5287/5287), done.
Tapped 2 commands and 5042 formulae (5,311 files, 324.3MB).
==> Downloading https://homebrew.bintray.com/bottles/telnet-63.high_sierra.bottl
######################################################################## 100.0%
==> Pouring telnet-63.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/telnet/63: 4 files, 138.1KB

4 使用telnet命令

使用telnet命令查看是否成功安装:

$ telnet
telnet>

5 参考

Mac OS 安装telnet命令

©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页