CentOS7源码安装Redis5.0.4非关系型数据库

源码安装redis-5.0.4

一、 下载redis

1、 需要连接网络

 

二、 案例(另一种安装方法)

[root@localhost ~]# wget http://download.redis.io/releases/redis-5.0.4.tar.gz

[root@localhost ~]# tar zxf redis-5.0.4.tar.gz

[root@localhost ~]# mv redis-5.0.4 /usr/local/redis      #把解压好的包,移动指定位置

[root@localhost ~]# cd /usr/local/redis

[root@localhost redis]# ll                          #会看到如下这些文件或目录

-rw-rw-r--.  1 root root 99445 3月  19 00:21 00-RELEASENOTES

-rw-rw-r--.  1 root root    53 3月  19 00:21 BUGS

-rw-rw-r--.  1 root root  1894 3月  19 00:21 CONTRIBUTING

-rw-rw-r--.  1 root root  1487 3月  19 00:21 COPYING

drwxrwxr-x.  6 root root   124 3月  19 00:21 deps

-rw-rw-r--.  1 root root    11 3月  19 00:21 INSTALL

-rw-rw-r--.  1 root root   151 3月  19 00:21 Makefile

-rw-rw-r--.  1 root root  4223 3月  19 00:21 MANIFESTO

-rw-rw-r--.  1 root root 20555 3月  19 00:21 README.md

-rw-rw-r--.  1 root root 62155 3月  19 00:21 redis.conf

-rwxrwxr-x.  1 root root   275 3月  19 00:21 runtest

-rwxrwxr-x.  1 root root   280 3月  19 00:21 runtest-cluster

-rwxrwxr-x.  1 root root   281 3月  19 00:21 runtest-sentinel

-rw-rw-r--.  1 root root  9710 3月  19 00:21 sentinel.conf

drwxrwxr-x.  3 root root  4096 3月  19 00:21 src

drwxrwxr-x. 10 root root   167 3月  19 00:21 tests

drwxrwxr-x.  8 root root  4096 3月  19 00:21 utils

 

[root@localhost ~]# make && make install            #编译安装

[root@localhost redis]# ll /usr/local/bin/                 #查看会有这些redis脚本

-rwxr-xr-x. 1 root root 4365136 8月  31 21:32 redis-benchmark

-rwxr-xr-x. 1 root root 8100624 8月  31 21:32 redis-check-aof

-rwxr-xr-x. 1 root root 8100624 8月  31 21:32 redis-check-rdb

-rwxr-xr-x. 1 root root 4805480 8月  31 21:32 redis-cli

lrwxrwxrwx. 1 root root      12 8月  31 21:32 redis-sentinel -> redis-server

-rwxr-xr-x. 1 root root 8100624 8月  31 21:32 redis-server

 

可检测目录文件;(可选)

[root@localhost redis]# yum -y install tcl

[root@localhost redis]# make test

[root@localhost redis]# vim tests/unit/memefficiency.tcl

修改:

150100的值改大点,如1500,1000,重新执行make test

 

 

 到此完结!

posted @ 2019-11-03 16:26  小啊博  阅读(254)  评论(0编辑  收藏  举报