rm -rf /var/log/redis/redis.log
echo "net.core.somaxconn= 1024" >> /etc/sysctl.conf
echo "vm.overcommit_memory=1" >> /etc/sysctl.conf
echo never > /sys/kernel/mm/transparent_hugepage/enabled
sysctl -p
[root@localhost ~]# service redis start Starting redis (via systemctl): Job for redis.service failed because the control process exited with error code. See "systemctl status redis.service" and "journalctl -xe" for details. [FAILED] [root@localhost ~]# systemctl status redis.service ● redis.service - LSB: start and stop Redis server Loaded: loaded (/etc/rc.d/init.d/redis; bad; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2019-09-09 09:17:28 CST; 5s ago Docs: man:systemd-sysv-generator(8) Process: 3027 ExecStart=/etc/rc.d/init.d/redis start (code=exited, status=6) Sep 09 09:17:28 localhost.localdomain systemd[1]: Starting LSB: start and stop Redis server... Sep 09 09:17:28 localhost.localdomain systemd[1]: redis.service: control process exited, code=exited status=6 Sep 09 09:17:28 localhost.localdomain systemd[1]: Failed to start LSB: start and stop Redis server. Sep 09 09:17:28 localhost.localdomain systemd[1]: Unit redis.service entered failed state. Sep 09 09:17:28 localhost.localdomain systemd[1]: redis.service failed.