centos7编译安装redis

  sre
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

LEAVE A COMMENT

Captcha Code