Home > Database > Mysql Tutorial > body text

centos6 Linux安装redis 2.6.14

WBOY
Release: 2016-06-07 16:31:25
Original
1045 people have browsed it

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


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template