You are not logged in.
Can't get redis settings to work after rebooting.
jun 25 12:25:16 fran redis-server[492]: 492:M 25 Jun 12:25:16.412 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
jun 25 12:25:16 fran redis-server[492]: 492:M 25 Jun 12:25:16.412 # Server started, Redis version 3.2.9
jun 25 12:25:16 fran redis-server[492]: 492:M 25 Jun 12:25:16.412 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the comma
jun 25 12:25:18 fran redis-server[492]: 492:M 25 Jun 12:25:18.027 * DB loaded from disk: 1.615 seconds
jun 25 12:25:18 fran redis-server[492]: 492:M 25 Jun 12:25:18.027 * The server is now ready to accept connections on port 6379
This is my /etc/rc.local
> !/bin/bash
> /etc/rc.local: Local multi-user startup script.
> sysctl -w net.core.somaxconn=65535
> echo never > /sys/kernel/mm/transparent_hugepage/enabled
This is the rc.local service I created:
[Unit]
Description=/etc/rc.local compatibility
[Service]
Type=oneshot
ExecStart=/etc/rc.local
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
This is redis.service:
[Unit]
Description=Advanced key-value store
After=network.target rc-local.service
[Service]
Type=simple
User=redis
Group=redis
ExecStart=/usr/bin/redis-server /etc/redis.conf
ExecStop=/usr/bin/redis-cli shutdown
CapabilityBoundingSet=
PrivateTmp=true
PrivateDevices=true
ProtectSystem=full
ProtectHome=true
NoNewPrivileges=true
RuntimeDirectory=redis
RuntimeDirectoryMode=755
LimitNOFILE=10032
[Install]
WantedBy=multi-user.target
Offline