Mac 端,redis安装

2018-09-11  本文已影响0人  技术创造未来

一、安装

$ wget http://download.redis.io/releases/redis-4.0.11.tar.gz

$ tar xzf redis-4.0.11.tar.gz

$ cd redis-4.0.11

$ make

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

二、进入安装目录,启动服务端:

$ src/redis-server

You can interact with Redis using the built-in client:

三、进入安装目录,启动客服端:

$ src/redis-cli

redis> set foo bar

OK

redis> get foo

"bar"

官网:https://redis.io/download

上一篇下一篇

猜你喜欢

热点阅读