This is an automated email from the ASF dual-hosted git repository.

leirui pushed a commit to branch research/LTS-visualization
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 2b420a43a1fcec2ab3bc1816c99d6deea90c8d2e
Author: Lei Rui <[email protected]>
AuthorDate: Sat Sep 28 14:39:51 2024 +0800

    fix
---
 server/src/assembly/resources/conf/iotdb-env.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/src/assembly/resources/conf/iotdb-env.sh 
b/server/src/assembly/resources/conf/iotdb-env.sh
index 46425cb7e4c..7d9b4afe3eb 100755
--- a/server/src/assembly/resources/conf/iotdb-env.sh
+++ b/server/src/assembly/resources/conf/iotdb-env.sh
@@ -36,7 +36,7 @@ fi
 SOMAXCONN=65535
 case "$(uname)" in
     Linux)
-        somaxconn=$(sysctl -n net.core.somaxconn)
+        somaxconn=$(/sbin/sysctl -n net.core.somaxconn)
         if [ "$somaxconn" -lt $SOMAXCONN ]; then
             echo "WARN:"
             echo "WARN: the value of net.core.somaxconn (=$somaxconn) is too 
small, please set it to a larger value using the following command."
@@ -46,7 +46,7 @@ case "$(uname)" in
         fi
     ;;
     FreeBSD | Darwin)
-        somaxconn=$(sysctl -n kern.ipc.somaxconn)
+        somaxconn=$(/sbin/sysctl -n kern.ipc.somaxconn)
         if [ "$somaxconn" -lt $SOMAXCONN ]; then
             echo "WARN:"
             echo "WARN: the value of kern.ipc.somaxconn (=$somaxconn) is too 
small, please set it to a larger value using the following command."

Reply via email to