netstat学习笔记

阅读量: searchstar 2023-10-22 17:06:46
Categories: Tags:

持续输出

   -c, --continuous
       This will cause netstat to print the selected information every second continuously.

用数字表示端口和host

   --numeric, -n
       Show numerical addresses instead of trying to determine symbolic host, port or user names.

netstat默认会直接写出特殊端口的名字而不是端口号,比如xxxx:nfs,其中nfs就是NFS使用的端口2049netstat -n就会显示xxxx:2049