mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-07 18:45:58 +08:00
feat: fix openim logs and ci (#1878)
This commit is contained in:
@@ -1541,12 +1541,8 @@ openim::util::check_ports() {
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
if command -v ss > /dev/null 2>&1; then
|
||||
info=$(ss -ltnp | grep ":$port" || true)
|
||||
openim::color::echo $COLOR_RED "!!!!!!!! port=$port"
|
||||
openim::color::echo $COLOR_RED "!!!!!!!! info=$info"
|
||||
else
|
||||
info=$(netstat -ltnp | grep ":$port" || true)
|
||||
openim::color::echo $COLOR_RED "!!!!!!!! port=$port"
|
||||
openim::color::echo $COLOR_RED "!!!!!!!! info=$info"
|
||||
fi
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
# For macOS, use lsof
|
||||
|
||||
Reference in New Issue
Block a user