v2-59d7bbaaeef9ab2f2cb41c02b06d8aae_r.jpg

cd
wget http://download.redis.io/releases/redis-stable.tar.gz
tar zxvf redis-stable.tar.gz
cd redis-stable
make -j 16 MALLOC=libc
cd src && make install
#测试 ./redis-server  
cd ../
vim redis.conf
bind 0.0.0.0
daemonize yes
mkdir -p /etc/redis
mv redis.conf /etc/redis/6379.conf
redis-server /etc/redis/6379.conf
cp -arf /root/redis-stable/utils/redis_init_script  /etc/init.d/redisd
cd /etc/init.d
chkconfig redisd on
service redisd stop
service redisd start

cc: error: ../deps/hiredis/libhiredis.a: No such file or directory
则进入redis下的deps下的运行如下命令:

make lua hiredis linenoise

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code