linux远程部署dify和mac本地部署dify
文章目录
- dify部署
- # 本地安装
- linux服务器部署
- mac本地部署
- 问题
dify部署
远程服务器,xhell or finalshell 连接
# 本地安装
linux服务器部署
-
安装git and docker
sudo yum install git-all
https://blog.csdn.net/Cosmoshhhyyy/article/details/136698105?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522117869e7b1a84ebb919adb0822f4b23f%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=117869e7b1a84ebb919adb0822f4b23f&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2blogfirst_rank_ecpm_v1~rank_v31_ecpm-4-136698105-null-null.nonecase&utm_term=docker&spm=1018.2226.3001.4450
-
下载开源代码
sudo git clone https://github.com/langgenius/dify.git git clone https://gitee.com/mirrors/dify.git # 国内下的快一点
-
docker部署
cd dify/docker sudo docker compose up -d
直接给我服务器干爆了,看来至少要4核2g以上才能启动。
- 启动
输入ip:端口即可。
mac本地部署
-
还是下载docker
-
下载代码(同linux操作)
sudo git clone https://github.com/langgenius/dify.git
git clone https://gitee.com/mirrors/dify.git # 国内下的快一点
- 启动
cd dify/docker
cp .env.example .env
docker compose up -d
-
浏览器输入
localhost/install
设置账户和密码即可登陆成功。
问题
-
docker启动时下载不下来
可以挂梯子或者配置docker镜像。
-
iptables 问题
重启docker试试。