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”

猜你喜欢

转载自www.cnblogs.com/iwangzheng/p/11104285.html