>  기사  >  데이터 베이스  >  centos6 Linux安装redis 2.6.14

centos6 Linux安装redis 2.6.14

WBOY
WBOY원래의
2016-06-07 16:31:251008검색

1、获取安装文件 wget http://download.redis.io/redis-stable.tar.gz 2、解压文件 tar xzvf redis-stable.tar.gz 3、进入目录 cd redis-stable 4、编译 make 5、安装 make install 6、设置配置文件路径 mkdir -p /etc/redis cp redis.conf /etc/redis 7、修

1、获取安装文件

wget http://download.redis.io/redis-stable.tar.gz


2、解压文件

tar xzvf redis-stable.tar.gz


3、进入目录

cd redis-stable


4、编译

make

5、安装

make install


6、设置配置文件路径

mkdir -p /etc/redis

cp redis.conf /etc/redis


7、修改配置文件

vi /etc/redis/redis.conf


仅修改: daemonize yes 


8、启动


/usr/local/bin/redis-server /etc/redis/redis.conf


9、查看启动


ps -ef | grep redis  


10、使用客户端


redis-cli

>set name david

OK

>get name

"david"


转发:http://blog.csdn.net/teamlet/article/details/9456243


성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.