Add Cargo installation method

This commit is contained in:
KernelErr 2021-10-26 21:40:40 +08:00
parent 55eef8581c
commit bfce455a7e
2 changed files with 12 additions and 0 deletions

View File

@ -23,6 +23,12 @@ $ cargo build --release
Binary file will be generated at `target/release/fourth`, or you can use `cargo install --path .` to install.
Or you can use Cargo to install Fourth:
```bash
$ cargo install fourth
```
## Configuration
Fourth will read yaml format configuration file from `/etc/fourth/config.yaml`, here is an example:

View File

@ -25,6 +25,12 @@ $ cargo build --release
将在`target/release/fourth`生成二进制文件,您也可以使用`cargo install --path . `来安装二进制文件。
或者您也可以使用Cargo直接安装
```bash
$ cargo install fourth
```
## 配置
Fourth使用yaml格式的配置文件默认情况下会读取`/etc/fourth/config.yaml`,如下是一个示例配置。