I have windows 10 home
, where is installed Ubuntu
lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 18.04.2 LTSRelease: 18.04Codename: bionic
I have installed Redis 5.0.5
(it mostly with make
and make install
)
When I startup the server with redis-server
it shows some warnings.
I have removed one about overcommit_memory
But about:
WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
I have read these two links:
- WARNING: /proc/sys/net/core/somaxconn is set to the lower value of 128. #35
- Performance tips for Redis Cache Server
Thus both indicate do the following:
- Go to the
/etc
directory - Create the
rc.local
file,sudo vim rc.local
- Add the
sysctl -w net.core.somaxconn=65535
content and save
I can confirm through
cat rc.localsysctl -w net.core.somaxconn=65535
Well in a secondary terminal I execute redis-cli shutdown
and in the primary terminal execute again redis-server
Problem the same warning appears, What is missing?
Note I have the same situation even after to execute sudo chmod +x rc.local