码迷,mamicode.com
首页 > 系统相关 > 详细

[Chapt1] Redis Install on linux

时间:2016-05-24 07:00:55      阅读:213      评论:0      收藏:0      [点我收藏+]

标签:nosql redis install linux

Open Terminal:

1. ~$ sudo apt-get update
2. ~$ sudo apt-get install make gcc python-dev

3.Download, extract and compile Redis with:

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


4. Startup Redis-server:
    The binaries that are now compiled are available in the src         directory. Run Redis with:

        -----script-----
    michael@ubuntu:~$ cd redis-3.2.0
    $ src/redis-server

5. Startup Redis-client and simpel code
    You can interact with Redis using the built-in client:

    -----script-----
    michael@ubuntu:~$ cd redis-3.2.0
    $ src/redis-cli
    redis> set foo bar
    OK
    redis> get foo
    "bar"
!import: online redis traning: http://try.redis.io/

[Chapt1] Redis Install on linux

标签:nosql redis install linux

原文地址:http://yuanzhitang.blog.51cto.com/2769219/1782316

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!