centos10 部署 bisheng

官方文档:https://dataelem.feishu.cn/wiki/ZxW6wZyAJicX4WkG0NqcWsbynde

安装参考文档:https://www.cnblogs.com/neu71449/p/18155514

 

问题:

1、执行docker-compose up -d,报错提示:

[287317] Error loading Python lib '/tmp/_MEIUe6Tu7/libpython3.7m.so.1.0': dlopen: libcrypt.so.1: cannot open shared object file: No such file or directory
解决:
系统上的 libcrypt 库文件。Docker Compose 需要 libcrypt.so.1,但系统只有 libcrypt.so.2。我们可以创建一个符号链接,将 libcrypt.so.1 指向 libcrypt.so.2:
 
sudo ln -s /usr/lib64/libcrypt.so.2 /usr/lib64/libcrypt.so.1
 
2、执行docker-compose up -d,报错提示:
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.office.environment.JWT_ENABLED contains false, which is an invalid type, it should be a string, number, or a null
解决:
docker-compose.yml 文件,将 JWT_ENABLED: false 改为 JWT_ENABLED: "false"
 
3、执行docker-compose up -d,报错提示:
ERROR: for bisheng-mysql Cannot start service mysql: failed to set up container networking: driver failed programming external connectivity on
Starting bisheng-redis ... error7:3306/tcp: address already in use

ERROR: for bisheng-redis Cannot start service redis: failed to set up container networking: driver failed programming external connectivity on endpoint bisheng-redis (624369297ab94f6a3d456bf37d4bc80042792a4ef719cbd5e2d039223866de2b): failed to bind host port for 0.0.0.0:6379:172.18.0.8:6379/tcp: address already in use

ERROR: for mysql Cannot start service mysql: failed to set up container networking: driver failed programming external connectivity on endpoint bisheng-mysql (cfaa87630d49f113df33dbd0c26af5a27e12394aa688a15b10412090dff9b08a): failed to bind host port for 0.0.0.0:3306:172.18.0.7:3306/tcp: address already in use

ERROR: for redis Cannot start service redis: failed to set up container networking: driver failed programming external connectivity on endpoint bisheng-redis (624369297ab94f6a3d456bf37d4bc80042792a4ef719cbd5e2d039223866de2b): failed to bind host port for 0.0.0.0:6379:172.18.0.8:6379/tcp: address already in use
ERROR: Encountered errors while bringing up the project.
解决:

1、编辑 docker-compose.yml,修改端口映射:

services:
  mysql:
    # ... 其他配置不变 ...
    ports:
      - "13306:3306"  # 改为13306或其他未被占用的端口
  
  redis:
    # ... 其他配置不变 ...
    ports:
      - "16379:6379"  # 改为16379或其他未被占用的端口

 2、编辑:

bisheng/docker/bisheng/config/config.yaml,,,更新mysql和redis端口
4、 执行 docker-compose up -d 报错:

ERROR: for c9b9f67a821c_bisheng-mysql 'ContainerConfig'

ERROR: for 5c7dfb31c913_bisheng-redis 'ContainerConfig'

ERROR: for mysql 'ContainerConfig'

ERROR: for redis 'ContainerConfig'
解决:执行:docker-compose down,再执行 docker-compose up -d
 
posted @ 2025-03-21 16:41  飞叶-枯寂  阅读(118)  评论(0)    收藏  举报