安裝metersphere v2.10.9-lts時修改install.conf的MS_REDIS_PORT=6379改成MS_REDIS_PORT=6381后報 {"Status":"unhealthy","FailingStreak":91,"Log":[{"Start":"2023-12-20T10:17:45.798151193+08:00","End":"2023-12-20T10:17:45.84806174+08:00","ExitCode":1,"Output":"Could not connect to Redis at 127.0.0.1:6379: Connection refused\n"},{"Start":"2023-12-20T10:17:51.870869157+08:00","End":"2023-12-20T10:17:51.925450167+08:00","ExitCode":1,"Output":"Could not connect to Redis at 127.0.0.1:6379: Connection refused\n"},{"Start":"2023-12-20T10:17:57.960629458+08:00","End":"2023-12-20T10:17:58.02748666+08:00","ExitCode":1,"Output":"Could not connect to Redis at 127.0.0.1:6379: Connection refused\n"},{"Start":"2023-12-20T10:18:04.043611438+08:00","End":"2023-12-20T10:18:04.10139498+08:00","ExitCode":1,"Output":"Could not connect to Redis at 127.0.0.1:6379: Connection refused\n"},{"Start":"2023-12-20T10:18:10.104392705+08:00","End":"2023-12-20T10:18:10.205651561+08:00","ExitCode":1,"Output":"Could not connect to Redis at 127.0.0.1:6379: Connection refused\n"}]}
1.修改安裝包下的/metersphere/docker-compose-redis.yml
ports:
- ${MS_REDIS_PORT}:6379
此處是6379不是6381
2.修改安裝包下的/metersphere/conf/redis.conf
將redis端口號設置為6379
3.然后安裝包路徑下執(zhí)行 /bin/bash install.sh,
然后在/opt/metersphere下的docker-compose-redis.yml和/opt/metersphere/conf下redis.conf的對應值更改成6379
附:
1.【安裝包下載】metersphere安裝包下載地址-開源社區(qū) - FIT2CLOUD 飛致云
2.【安裝部署】MeterSphere 1.20 LTS 至2.10 LTS 升級指南 - FIT2CLOUD 知識庫
3.【MeterSphere安裝問題記錄】dependency failed to start: container system-setting is unhealthy-CSDN博客
4.【MeterSphere安裝問題記錄】docker容器unhealthy怎么辦_mob64ca12f21246的技術博客_51CTO博客
5.【metersphere介紹與安裝部署】 - 簡書 (jianshu.com)