centos上如何安装redis?|centos傻瓜式安装redis教程

时间:2023-03-08 20:16:07
centos上如何安装redis?|centos傻瓜式安装redis教程

本文介绍centos安装redis,请不要安装2.4.3,是有问题的。

首先安装gcc

yum -y install gcc yum -y install gcc-c++ yum install make

下面安装redis

$ wget http://download.redis.io/releases/redis-3.2.5.tar.gz
$ tar xzf redis-3.2.5.tar.gz
$ cd redis-3.2.5
$ make

在根目录下有redis.conf

配置后台启动 修改redis.conf的deamonize值为yes

启动redis

src/redis-server redis.conf

原文地址:http://www.whosmall.com/post/80