mac如何安装redis

How to Install Redis on Mac OSX

$ 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”

发表评论

电子邮件地址不会被公开。 必填项已用*标注