This commit is contained in:
luk.lu
2022-12-26 17:56:32 +08:00
parent 3e513801bd
commit 45edb0c583
14 changed files with 80 additions and 77 deletions

View File

@@ -1,4 +1,9 @@
echo "=== 需要查看的端口号:"
read -p ">>> " PORT
if [ "$1" ]
then
PORT=$1
else
echo "=== 需要查看的端口号:"
read -p ">>> " PORT
fi
netstat -tunlp | grep $PORT