Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
See the code of iotdb-env.sh
I have tested in my MacBook and a Linux virtual machine, the command outputs are:
Linux
[root@a0933215a07b iotdb]# sysctl net.core.somaxconn net.core.somaxconn = 128
MacOS
[myuser iotdb]# sysctl kern.ipc.somaxconn kern.ipc.somaxconn: 128
Here we can see using awk '{print $2}' will get '=' in Linux, casuing the condition check failed.
The best solution is using sysctl -n option directly:
Linux
[root@a0933215a07b iotdb]# sysctl -n net.core.somaxconn 128
MacOS
[myuser iotdb]# sysctl -n kern.ipc.somaxconn 128