您的位置:首页 > 数据库 > Redis

centos 下 redis 下载与安装

2016-07-12 13:43 357 查看
1、官网

     http://redis.io/

2、下载

     wget    http://download.redis.io/releases/redis-3.2.1.tar.gz

3、  解压

      tar    -zxvf     redis-3.2.1.tar.gz

4、 进入目录

      cd   redis-3.2.1

5、进入源码

       cd     src

6、编译

      make

7、 编译并安装

    make    install

8、测试

     make test

    出现  All tests passed without errors!    表示安装成功

9、启动redis

      src/redis-server &

10、测试

     src/redis-cli

11、关闭redis

     src/redis-cli   shutdown 

错误详解: 

           问题:1、You need tcl 8.5 or newer in order to run the Redis test  

            解答:wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz     

          cd  /usr/local/tcl8.6.1/unix/ 

          ./configure

 
        make 

 
        make   install

 

         问题2:缺少gcc 

                     yum     install   -y    gcc

        

   
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: