You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ni...@apache.org on 2019/05/31 14:20:27 UTC
[kylin] 02/02: Remove -p paramter when check port availability,
which will output warning info if not running as root user.
This is an automated email from the ASF dual-hosted git repository.
nic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git
commit d533d186494e9e5ec23f8e6576d2a15004aed7a3
Author: 凡梦星尘 <el...@gmail.com>
AuthorDate: Mon May 20 18:13:23 2019 +0800
Remove -p paramter when check port availability, which will output warning info if not running as root user.
---
build/bin/check-port-availability.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build/bin/check-port-availability.sh b/build/bin/check-port-availability.sh
index e27b893..1208269 100644
--- a/build/bin/check-port-availability.sh
+++ b/build/bin/check-port-availability.sh
@@ -27,7 +27,7 @@ kylin_port=`grep "<Connector port=" ${KYLIN_HOME}/tomcat/conf/server.xml |grep p
if isMacosX; then
kylin_port_in_use=`lsof -nP -iTCP:"${kylin_port}" | grep LISTEN`
else
- kylin_port_in_use=`netstat -tlpn | grep "\b${kylin_port}\b"`
+ kylin_port_in_use=`netstat -tln | grep "\b${kylin_port}\b"`
fi
# if not available, prompt error messeage