---
title: "CentOS安装Redis记录"
author: "PrisonBreak"
date: "2015-10-04T15:20:28Z"
tags: []
categories: ["编程语言"]
slug: "centos-redis"
draft: false
lastmod: "2015-10-04T15:21:55Z"
id: 2247218
url: "https://prisonbreak.iteye.com/blog/2247218"
---

redis 是一个基于内存的高性能key-value数据库，数据都保存在内存中定期刷新到磁盘，以极高的读写效率而备受关注。他的特点是支持各种数据结构，stirng,hashes, list,set,和sorted sets

 

1.下载安装

```
wget http://download.redis.io/redis-stable.tar.gz
tar -zxvf redis-stable.tar.gz
cd redis-stable
make
```

 

2.make test 检查一下是否正常，遇到1个错误：You need 'tclsh8.5' in order to run the Redis test

```
[root@localhost redis-stable]# make test
```

 

3.使用一下命令安装

```
yum install tcl
```

 

然后再次执行：

```
root@localhost redis-stable]# make test
```

 

 

这次最后提示：Cleanup: may take some time... OK

 说明redis安装正常。可以运行。