Redis安装教程

1. Linux下Redis安装教程

(1)安装

#tar xf  redis-2.6.14.tar.gz
#cd redis-2.6.14
#make
#make install

(2)配置


修改redis.conf配置文件
#cp redis.conf /etc/
#vi /etc/redis.conf
#以守护进程方式运行
daemonize no改为 daemonize yes 
#修改dir ./为绝对路径,
./ redis  #改为/usr/local/
#修改appendonly为yes
#指定是否在每次更新操作后进行日志记录,
appendonly no  改为 appendonly yes

(3)启动

#/usr/local/bin/redis-server /etc/redis.conf
查看redis是否己启动 
#ps -ef | grep redis
#netstat -tnlp |grep redis
1.4 将redis添加到自启动中
#echo "/usr/local/bin/redis-server /etc/redis.conf" >> /etc/rc.local

2. Windows下Redis安装教程

(1)安装

unzip redis-2.0.0.zip

(2)配置

网上下载一个redis.conf,解压到同级目录

(3)启动

redis-server.exe redis.conf

(4)windows版redis为非官方正式版,仅可作为开发调试使用,建议在Linux系统上安装Redis

posted @ 2015-01-21 13:11  沙漏哟  阅读(245)  评论(0编辑  收藏  举报