1.停掉milvus
cd /home/middle/milvus
docker-compose stop standalone
这里的standalone是在docker-compose.yml中配置的名称,而不是docker-compose ps出来的名称
2.修改配置文件
/home/middle/milvus/milvus.yaml
该文件已经从docker挂载出来到宿主机
# Configures the system log output.
log:level: warn # Only supports debug, info, warn, error, panic, or fatal. Default 'info'.file:rootPath: # root dir path to put logs, default "" means no log file will print. please adjust in embedded Milvus:/tmp/milvus/logsmaxSize: 300 # MBmaxAge: 10 # Maximum time for log retention in day.maxBackups: 20format: text # text or jsonstdout: true # Stdout enable or not
3.启动
docker-compose start standalone