如果提示:bash: netstat: command not found
說明沒有安裝netstat工具,而該工具在 net-tools 工具包內。
apt-get install net-tools
Ok.再說一句,net-tools包還包含:arp, ifconfig
, netstat
, rarp
, nameif
and route這幾個工具。
參考:https://linuxconfig.org/bash-netstat-command-not-found-debian-ubuntu-linux