yum install gcc
wget http://download.redis.io/releases/redis-3.2.6.tar.gz
tar xzf redis-3.2.6.tar.gz
cd redis-3.2.6
make MALLOC=libc
make install
cp redis.conf /usr/local/bin/
echo "vm.overcommit_memory = 1" >> /etc/sysctl.conf
sysctl -p
echo never > /sys/kernel/mm/transparent_hugepage/enabled
vim /etc/rc.local
if test -f /sys/kernel/mm/redhat_transparent_hugepage/enabled; then
echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled
fi
cd /usr/local/bin/
vim redis.conf
bind 192.168.8.221
./redis-server redis.conf
原文地址:http://blog.51cto.com/zuoshou/2121969
时间: 2024-10-09 06:06:21