1 Star 0 Fork 13

openSource/DragonflyDB

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build-from-source.md 1.13 KB
一键复制 编辑 原始数据 按行查看 历史

Build DragonflyDB From Source

Running the server

Dragonfly runs on linux. We advice running it on linux version 5.11 or later but you can also run Dragonfly on older kernels as well.

WARNING: Building from source on older kernels WILL NOT WORK.

Step 1

git clone --recursive https://github.com/dragonflydb/dragonfly && cd dragonfly

Step 2

# Install dependencies
sudo apt install ninja-build libunwind-dev libboost-fiber-dev libssl-dev \
     autoconf-archive libtool cmake g++ libzstd-dev

Step 3

# Configure the build
./helio/blaze.sh -release

# Build
cd build-opt && ninja dragonfly

Step 4

# Run
./dragonfly --alsologtostderr

Dragonfly DB will answer to both http and redis requests out of the box!

You can use redis-cli to connect to localhost:6379 or open a browser and visit http://localhost:6379

Step 5

Connect with a redis client

redis-cli
127.0.0.1:6379> set hello world
OK
127.0.0.1:6379> keys *
1) "hello"
127.0.0.1:6379> get hello
"world"
127.0.0.1:6379>

Step 6

Continue being great and build your app with the power of DragonflyDB!

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/other-open-source/DragonflyDB.git
git@gitee.com:other-open-source/DragonflyDB.git
other-open-source
DragonflyDB
DragonflyDB
main

搜索帮助