update readme

This commit is contained in:
hdt3213
2021-05-15 17:59:16 +08:00
parent 4241352f49
commit 0111355689
2 changed files with 9 additions and 0 deletions

View File

@@ -24,10 +24,15 @@ You can get runnable program in the releases of this repository, which supports
```bash ```bash
./godis-darwin ./godis-darwin
./godis-linux
``` ```
![](https://i.loli.net/2021/05/15/oQM1yZ6pWm3AIEj.png)
You could use redis-cli or other redis client to connect godis server, which listens on 127.0.0.1:6379 on default mode. You could use redis-cli or other redis client to connect godis server, which listens on 127.0.0.1:6379 on default mode.
![](https://i.loli.net/2021/05/15/7WquEgonzY62sZI.png)
The program will try to read config file path from environment variable `CONFIG`. The program will try to read config file path from environment variable `CONFIG`.
If environment variable is not set, then the program try to read `redis.conf` in the working directory. If environment variable is not set, then the program try to read `redis.conf` in the working directory.

View File

@@ -25,8 +25,12 @@ Godis 的信息。
./godis-linux ./godis-linux
``` ```
![](https://i.loli.net/2021/05/15/oQM1yZ6pWm3AIEj.png)
godis 默认监听 127.0.0.1:6379可以使用 redis-cli 或者其它 redis 客户端连接 Godis 服务器。 godis 默认监听 127.0.0.1:6379可以使用 redis-cli 或者其它 redis 客户端连接 Godis 服务器。
![](https://i.loli.net/2021/05/15/7WquEgonzY62sZI.png)
godis 首先会从CONFIG环境变量中读取配置文件路径。若环境变量中未设置配置文件路径则会读取工作目录中的 redis.conf 文件。若 redis.conf 文件不存在则会使用自带的默认配置。 godis 首先会从CONFIG环境变量中读取配置文件路径。若环境变量中未设置配置文件路径则会读取工作目录中的 redis.conf 文件。若 redis.conf 文件不存在则会使用自带的默认配置。
## 集群模式 ## 集群模式