Skip to content

Commit

Permalink
add horaemeta compile guide
Browse files Browse the repository at this point in the history
  • Loading branch information
baojinri committed Nov 6, 2024
1 parent 66d2d83 commit d23e105
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions content/cn/docs/dev/compile_run.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
```

0 comments on commit d23e105

Please sign in to comment.