From d23e105bd54612f965276492b2258a20779ff1d5 Mon Sep 17 00:00:00 2001 From: baojinri Date: Wed, 6 Nov 2024 11:00:29 +0800 Subject: [PATCH] add horaemeta compile guide --- content/cn/docs/dev/compile_run.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/content/cn/docs/dev/compile_run.md b/content/cn/docs/dev/compile_run.md index 13af08aa..477d002d 100644 --- a/content/cn/docs/dev/compile_run.md +++ b/content/cn/docs/dev/compile_run.md @@ -44,13 +44,15 @@ source $HOME/.cargo/env # 编译运行 -编译 HoraeDB 命令如下: +## horaedb-server + +在项目根目录下,执行如下命令编译 horaedb-server: ``` cargo build ``` -然后可以使用特定的配置文件运行 HoraeDB。 +然后可以使用特定的配置文件运行 horaedb-server。 ```bash ./target/debug/horaedb-server --config ./docs/minimal.toml @@ -78,3 +80,19 @@ error: could not compile `syn` (lib) ulimit -n unlimited ulimit -f unlimited ``` + +## horaemeta-server + +编译 horaemeta-server 前需要安装 [Golang](https://go.dev/doc/install),要求 Golang 版本 >= 1.21。 + +在 `horaemeta` 目录下,执行: + +```bash +go build -o bin/horaemeta-server ./cmd/horaemeta-server/main.go +``` + +可以使用如下命令运行 horaemeta-server: + +```bash +bin/horaemeta-server +```