linux 7.2でredis 5.0.4をインストール
770 ワード
linux7.2 redis
https://redis.io/
tar -zxvf redis-5.0.4.tar.gz
mv redis-5.0.4 redis
cd redis
make
make MALLOC=libc
:
cd /root/soft/redis/src
./redis-server /root/soft/redis/redis.conf
:
vi redis.conf
maxmemory 3G
WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
echo 511 >/proc/sys/net/core/somaxconn
WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
vi /etc/sysctl.conf
vm.overcommit=1