咨询热线:4006-75-4006
售前:9:00-23:30 备案:9:00-18:00 技术:7*24h
1.下载和解压
首先从官网下在redis正式版的压缩包redis-2.8.19.tar.gz
http://www.landui.com/releases/redis-2.8.19.tar.gz
tar -axvf redis-2.8.19.tar.gz
mv ./redis-2.8.19 /usr/local/redis/
2.进行安装
#cd /usr/loca/redis/src
#make && make insall
3.配置
#mkdir /usr/local/redis/etc
#mkdir /usr/local/redis/bin
#cp /usr/local/redis/redis.conf /usr/local/redis/etc/
#cp /usr/local/redis/etc/* /usr/local/redis/bin #一般情况下复制这几个文件就可以了:mkreleasehdr.sh redis-benchmark redis-check-aof redis-check-dump redis-cli redis-sentinel redis-server
4.启动redis服务
#vi /usr/local/redis/etc/redis.conf
#把将daemonize由no改为yes
#退出保存
#cd bin
#./redis-server /usr/local/redis/etc/redis.conf
5.查看进程
#ps -ef | grep redis
6.怎样关闭redis服务
#/usr/local/redis/redis-cli shutdown
#kill -9 pid