paper.archive/Opensource
Opensource

Installing redis 3.2.3

Contents

Install the compiler first. (Skip if already installed)

1
yum install gcc gcc-c++ autoconf automake

Reference) http://www.redis.io/download

Install

1
2
3
4
5
6
7
# 다운로드 및 설치 (컴파일)
wget http://download.redis.io/releases/redis-3.2.3.tar.gz
tar xzf redis-3.2.3.tar.gz
cd redis-3.2.3
make && make install
cd utils
./install_server.sh

Check the run log

1
tail -f /var/log/redis_6379.log -n 1000

Removing the warnings in the log

  • Add the following to vi /etc/sysctl.conf
1
2
vm.overcommit_memory=1
fs.file-max = 1048576
  • Add the following to vi /etc/rc.local
1
2
echo never > /sys/kernel/mm/transparent_hugepage/enabled
sysctl -w net.core.somaxconn=65535
  • Add the following to vi /etc/security/limits.conf
1
2
3
4
* soft nofile 65536
* hard nofile 65536
* soft nproc 131072
* hard nproc 131072