Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: change README_CN.md README.md #2406

Merged
merged 2 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,26 @@ Users can directly download the latest binary version package from [releases](ht
```


* #### 3.4 Running with docker-compose

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请添加一个使用说明,以供不熟悉 docker-compose 的用户可以参考

docker-compose.yaml
```yaml
pikadb:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker-compose 的格式有问题,文件头部应该是

version: '2'
services:
  pikadb:

image: pikadb/pika:lastest

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最新的镜像地址是 pikadb/pika:latest

container_name: pikadb
ports:
- "6379:9221"
volumes:
- ./data/pika:/pika/log

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log 目录不要挂在 db dump 的上级,最好是同级。

# Specify the configuration file path. If you need to specify a configuration file, specify it here.
# Note: pika.conf should be in the ./deploy/pika directory
#- ./deploy/pika:/pika/conf
- ./data/pika/db:/pika/db
- ./data/pika/dump:/pika/dump
- ./data/pika/dbsync:/pika/dbsync
privileged: true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请问 privileged 是必须的吗,如果不是尽量不要添加。

restart: always
```


## Performance test

Expand Down
19 changes: 18 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,24 @@ Pika 力求在完全兼容 Redis 协议、 继承 Redis 便捷运维设计的前
--image redis -it --rm --restart=Never \
-- /usr/local/bin/redis-cli -h pika-sample -p 9221 info
```

* #### 3.4 使用 docker-compose

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

docker-compose.yaml
```yaml
pikadb:
image: pikadb/pika:lastest
container_name: pikadb
ports:
- "6379:9221"
volumes:
- ./data/pika:/pika/log
# 指定配置文件路径,如果有需要指定配置文件则在这里指定 注意: pika.conf 要在./deploy/pika目录中
#- ./deploy/pika:/pika/conf
- ./data/pika/db:/pika/db
- ./data/pika/dump:/pika/dump
- ./data/pika/dbsync:/pika/dbsync
privileged: true
restart: always
```
## Pika 未来工作规划

### 1、Pika 单机版
Expand Down
Loading