ubuntu系统安装Dify的方法
Ubuntu安装Dify方法
1、安装Docker。
sudo apt update && sudo apt upgrade -y
sudo apt install -y ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin2、由于Docker在国内被墙,需要设置镜像。
sudo vim /etc/docker/daemon.json添加以下内容:
{
"registry-mirrors": [
"https://docker.m.daocloud.io/",
"https://huecker.io/",
"https://dockerhub.timeweb.cloud",
"https://noohub.ru/",
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn",
"https://xx4bwyg2.mirror.aliyuncs.com",
"http://f1361db2.m.daocloud.io",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn"
]
}3、启动Docker并设置开机自启动。
sudo systemctl enable --now docker4、测试Docker是否安装成功。
sudo docker run hello-world5、使用git克隆Dify项目并进行编译。
git clone https://github.com/langgenius/dify.git --branch 0.15.3
cd dify
cd docker
cp .env.example .env
sudo docker compose up -d
sudo docker compose ps6、在浏览器中访问即可。
http://localhost/install 最后更新于10月前
本文由人工编写,AI优化,转载请注明原文地址: ubuntu系统安装Dify的方法
推荐阅读
Kaggle Notebook性能实测:免费GPU主机配置与运行时间分析
8042025-11-23
43种常见网络爬虫详解:功能解析与访问量统计指南
2342025-11-23
Windows系统PyTorch安装教程:CUDA 12.1环境配置与TorchText版本兼容性指南
23362025-10-08
天地图429 Too Many Requests错误解决方案-配额升级与配置指南
4792025-11-25
VMware Workstation 17许可证密钥及免费激活方法详解
29392025-10-26
天融信VPN客户端详解:VONE与安全接入的区别、下载与使用指南
12782025-12-03
评论 (0)
发表评论
昵称:加载中...
暂无评论,快来发表第一条评论吧!