$ mkdir redis && cd redis
$ curl -O http://download.redis.io/redis-stable.tar.gz
$ tar xzvf redis-stable.tar.gz
$ cd redis-stable
$ make
$ make test
$ sudo make install
使用下面的命令启动Redis Server。Now to start Redis server, you can run this command.
$ redis-server
To Test if Redis server is running run this command.
| 1 | $ redis-cli ping |
If it replies “PONG”, then it’s good to go!
To set a value run the following commandsShell
$ redis-cliredis> set foo bar
OK
redis> get foo”bar”
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!