Created
March 5, 2014 09:55
-
-
Save xiangjian/9364368 to your computer and use it in GitHub Desktop.
port判断
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TCP端口 | |
nc -w 1 127.0.0.1 53 && echo true || echo false | |
UDP端口: | |
nc -w 1 -u 127.0.0.1 53 && echo true || echo false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment