当前位置: 首页 > news >正文

windows下安装difi(无docker desktop版)

1.wsl 下载Ubuntu
wsl install
2.wsl 启动Ubuntu
wsl -d Ubuntu

3.ubuntu中 下载docker环境
sudo apt install docker.io -y

报错解决方案:手动添加 Docker 官方存储库
安装必要的依赖包
sudo apt update
sudo apt install -y ca-certificates curl gnupg

    创建 GPG 密钥目录
sudo install -m 0755 -d /etc/apt/keyrings

下载并添加 Docker 的 GPG 密钥
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

更新软件包列表
sudo apt update

安装 Docker 及其组件
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

4.下载docker-compose
sudo apt install docker-compose

5.增加用户权限
sudo usermod -aG docker $USER
newgrp docker

6.运行启动dify(本地下载了dify工程[d/git_clone/dify-main/])
docker compose -f /mnt/d/dify/dify/docker/docker-compose.yaml up -d


7.windows系统安装nginx
配置代理,转发请求,可以在局域网其他电脑上通过局域网ip地址访问dify服务
server {
listen       8080;
server_name  localhost;

        location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8080;
}
}


文章转载自:
http://acceptance.hyyxsc.cn
http://ascertainment.hyyxsc.cn
http://chicquer.hyyxsc.cn
http://bicol.hyyxsc.cn
http://canoe.hyyxsc.cn
http://altazimuth.hyyxsc.cn
http://bimetal.hyyxsc.cn
http://bvm.hyyxsc.cn
http://apercu.hyyxsc.cn
http://carrageenan.hyyxsc.cn
http://affluence.hyyxsc.cn
http://centimeter.hyyxsc.cn
http://absinthium.hyyxsc.cn
http://callant.hyyxsc.cn
http://benmost.hyyxsc.cn
http://beng.hyyxsc.cn
http://chambered.hyyxsc.cn
http://airplane.hyyxsc.cn
http://bsaa.hyyxsc.cn
http://asphyxiate.hyyxsc.cn
http://acutilingual.hyyxsc.cn
http://bonanzagram.hyyxsc.cn
http://chiefy.hyyxsc.cn
http://ailurophobia.hyyxsc.cn
http://aproposity.hyyxsc.cn
http://accordance.hyyxsc.cn
http://chalybeate.hyyxsc.cn
http://caucasian.hyyxsc.cn
http://bindle.hyyxsc.cn
http://bout.hyyxsc.cn
http://www.dtcms.com/a/281774.html

相关文章:

  • 7.15 腾讯云智面经整理
  • Wiz笔记二次开发
  • AI大模型开发架构设计(22)——LangChain的大模型架构案例实战
  • 记忆力训练day41
  • 1-Nodejs介绍与安装
  • 基于STM32的智能火灾报警系统设计
  • 【人工智能99问】激活函数有哪些,如何选择使用哪个激活函数?(5/99)
  • ADAU系列DSP用MCU来做控制,怎么去理解这个逻辑
  • Vue3 + MapLibre 地图管理工具 useMap 使用指南
  • 牛客:HJ22 汽水瓶[华为机考][数字处理]
  • 基于Sentinel-1雷达数据的洪水动态监测(附完整GEE代码)
  • 深入理解红锁
  • Vue3入门-指令补充
  • 学习C++、QT---26(QT中实现记事本项目实现文件路径的提示、C++类模板、记事本的行高亮的操作的讲解)
  • 面向对象与面向过程、函数式编程
  • C++回顾 Day8
  • 【时时三省】(C语言基础)通过指针引用多维数组
  • 【09】MFC入门到精通——MFC 属性页对话框的 CPropertyPage类 和 CPropertySheet 类
  • burpsuite使用中遇到的一些问题(bp启动后浏览器无法连接)/如何导入证书
  • css实现烧香效果
  • 20.如何在 Python 字典中找到最小值或最大值的键?
  • 【卡尔曼滤波第六期】集合变换卡尔曼滤波 ETKF
  • 【Linux庖丁解牛】— 保存信号!
  • HTML网页结构(基础)
  • 【linux V0.11】init/main.c
  • 函数指针与指针函数练习讲解
  • 9、线程理论1
  • HostVDS 云服务器测评:平价入门、流媒体解锁全美、表现稳定
  • 暑假Python基础整理 --异常处理及程序调试
  • Redis 中的持久化机制:RDB 与 AOF