netstat -an will print the current network link status of the system, while grep -i "80" is used to extract connections related to port 80, and wc -l counts the number of connections
# When counting other ports: netstat -pnt | grep :xx | wc -l
netstat -pnt | grep :443 | wc -l
Post comment 取消回复