[Chapt1] Redis Install on linux
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Chapt1] Redis Install on 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-----
[email protected]:~$ 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-----
[email protected]:~$ 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的主要内容,如果未能解决你的问题,请参考以下文章