目前Redis已经升级到3.0.5为最稳定版本,但很多系统源没有更新,所以在这里进行编译安装
适合所有系统
#wget
#tar xvf redis-stable
#cd redis-stable
#make
#make install
安装后我们进行配置
#cd utils
#./install_server.sh
这里会根据需要进行配置,我的配置如下:
端口:6379
配置路径:/etc/redis/redis.conf
数据存放路径:/var/lib/redis/
注册服务:redis-server
Welcome to the redis service installer
This script will help you easily set up a running redis server
Please select the redis port for this instance: [6379]
Selecting default: 6379
Please select the redis config file name [/etc/redis/6379.conf] /etc/redis/redis.conf
Please select the redis log file name [/var/log/redis_6379.log]
Selected default - /var/log/redis_6379.log
Please select the data directory for this instance [/var/lib/redis/6379] /var/lib