国产化系统openEuler容器部署dify 1.13
国产化系统 openEuler 容器部署 Dify 1.13 指南环境准备确保系统为 openEuler 22.03 LTS 或更高版本并已安装 Docker 和 Docker Compose。如果没安装可以参考我之前的文章https://blog.csdn.net/m0_56204567/article/details/160008184?spm1001.2014.3001.5502https://blog.csdn.net/m0_56204567/article/details/160008184?spm1001.2014.3001.5502安装git# 安装 Git sudo yum install git部署 Dify 1.13创建项目目录并进入mkdir Dify cd Dify将 Dify 源代码克隆到本地机器当前最新的dify版本是1.13我下载的最新版本进行安装。git clone --branch $(curl -s https://api.github.com/repos/langgenius/dify/releases/latest | jq -r .tag_name) https://github.com/langgenius/dify.git在执行git克隆的时候可能由于网络原因我的机器上面报错error: RPC 失败。curl 16 Error in the HTTP2 framing layerfatal: 在引用列表之后应该有一个 flush 包解决办法是禁用 HTTP/2使用 HTTP/1.1# 临时设置 Git 使用 HTTP/1.1 git config --global http.version HTTP/1.1 # 然后再执行克隆 git clone --branch $(curl -s https://api.github.com/repos/langgenius/dify/releases/latest | jq -r .tag_name) https://github.com/langgenius/dify.git导航到 Dify 源代码中的docker目录cd ./dify/docker复制示例环境配置文件cp .env.example .env启动容器docker compose up -d首次启动需要拉取镜像可能需要花费较长时间。如果遇到拉取镜像失败的情况可以尝试更换速度快的docker镜像源来解决。顺利的话一会就可以看到镜像拉取完成并成功启动如下图验证部署检查容器运行状态docker compose ps访问 Dify Web 界面http://服务器IP:80记得要开放端口哦正常便可访问到dify的页面啦设置管理员的邮箱和用户名密码之后就可以进行使用了。