linux|Jumpserver 避“坑”指南

最近捣鼓了一下jumpserver的堡垒机,用的最新版的遇到了些“坑”,记录一下:
1、Core 启动异常 我遇到的情况是,虚机挂起状态启动,core服务unhealthy。

Creating network "jms_net" with driver "bridge" Creating jms_mysql ... done Creating jms_redis ... done Creating jms_core... done ERROR: for celeryContainer "76b2e315f69d" is unhealthy. ERROR: for linaContainer "76b2e315f69d" is unhealthy. ERROR: for lunaContainer "76b2e315f69d" is unhealthy. ERROR: for lionContainer "76b2e315f69d" is unhealthy. ERROR: for kokoContainer "76b2e315f69d" is unhealthy. ERROR: Encountered errors while bringing up the project.

尝试过jumpserver官网提供的方法:
# 如果出现上面的错误, 执行下面的命令, 直到出现 Check service status 为止 docker logs -f jms_core --tail 200# 如果没有报错就等表结构合并完毕后然后重新 start 即可

日志显示,连接不上本地的数据库。我对本地数据进行端口与状态检查,并没有异常。
解决方案: 1、停止jumpserver的容器
./jmsctl.sh stop

2、重启docker服务
systemctl restartdocker

3、启动jumpserver
./jmsctl.sh start

【linux|Jumpserver 避“坑”指南】4、耐心等待2分钟
WARNING: Found orphan containers (jms_mysql) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. jms_redis is up-to-date Creating jms_core ... done Creating jms_koko... done Creating jms_lion... done Creating jms_celery ... done Creating jms_web... done

    推荐阅读