redis 安裝

官方下載安裝:https://redis.io/download

Installation

Download, extract and compile Redis with:

$ wget http://download.redis.io/releases/redis-5.0.7.tar.gz
$ tar xzf redis-5.0.7.tar.gz
$ cd redis-5.0.7
$ 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"

可能報錯,要安裝make,gcc,gcc-c++,tcl

命令:make MALLOC=libc

 

參考:https://blog.csdn.net/qq_37859539/article/details/83715803

發佈了56 篇原創文章 · 獲贊 3 · 訪問量 19萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章