From b7268db09a65ec83b548390eff413b6ef2170c0f Mon Sep 17 00:00:00 2001 From: wulabing Date: Sat, 27 Jan 2018 11:41:24 +0800 Subject: [PATCH] V2.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 完善 端口占用 判断 --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 9a66d2b..baf6a17 100644 --- a/install.sh +++ b/install.sh @@ -243,7 +243,7 @@ domain_check(){ } port_exist_check(){ - if [[ 0 -eq `netstat -tlpn | grep "$1"| wc -l` ]];then + if [[ 0 -eq `netstat -lntuap | grep "$1"| wc -l` ]];then echo -e "${OK} ${GreenBG} $1 端口未被占用 ${Font}" sleep 1 else