sysconfig/linux-port.sh
2022-12-09 14:35:31 +08:00

5 lines
86 B
Bash
Executable File

echo "=== 需要查看的端口号:"
read -p ">>> " PORT
netstat -tunlp | grep $PORT