检测IP端口
1,安装tcping
$ brew search tcping
==> Formulae
tcping
$ brew install tcping
Error: The following directories are not writable by your user:
/usr/local/share/man/man8
You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/share/man/man8
And make sure that your user has write permission.
chmod u+w /usr/local/share/man/man8
$ sudo chown -R $(whoami) /usr/local/share/man/man8
Password:
$ chmod u+w /usr/local/share/man/man8
$ brew install tcping
$ which tcping
/usr/local/bin/tcping
2,检测IP端口是否被屏蔽
$ tcping 14.215.177.39 80
14.215.177.39 port 80 open.
参考: