惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
博客园 - 聂微东
Application and Cybersecurity Blog
Application and Cybersecurity Blog
MyScale Blog
MyScale Blog
罗磊的独立博客
H
Help Net Security
L
LangChain Blog
T
Threat Research - Cisco Blogs
量子位
S
Securelist
Last Week in AI
Last Week in AI
L
Lohrmann on Cybersecurity
T
The Exploit Database - CXSecurity.com
P
Privacy International News Feed
The Hacker News
The Hacker News
Vercel News
Vercel News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Blog of Author Tim Ferriss
T
Threatpost
Security Latest
Security Latest
P
Palo Alto Networks Blog
Microsoft Security Blog
Microsoft Security Blog
NISL@THU
NISL@THU
F
Full Disclosure
WordPress大学
WordPress大学
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Stack Overflow Blog
Stack Overflow Blog
C
Check Point Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Heimdal Security Blog
J
Java Code Geeks
Recorded Future
Recorded Future
Hugging Face - Blog
Hugging Face - Blog
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
阮一峰的网络日志
阮一峰的网络日志
U
Unit 42
B
Blog RSS Feed
月光博客
月光博客
C
Cisco Blogs
V
Visual Studio Blog
D
DataBreaches.Net
H
Hacker News: Front Page
博客园 - 叶小钗
N
News and Events Feed by Topic
爱范儿
爱范儿
A
Arctic Wolf

博客园 - 网无忌

关于Docker Desktop的常用配置 渐变文字的小技巧 机器学习基础 pydantic中关于属性必填和选填的区别 CentOS的常用命令 密码中含有特殊字符造成mysqldump备份失败的一个小教训 通过模拟Cron执行环境来复现脚本执行失败的过程 查看mysql当前的执行任务,并关闭其中的指定任务 配置WSL2实现与宿主机的网络互通 超简单的 rsync 命令,实现文件的增量同步 十九年白驹过隙,老园子聊发少年狂 Linux中安装anaconda 矢量数据库Chromadb的入门信息 在wsl中部署puppeteer的相关笔记 向量数据库横比 整理了一下目前各Linux发行版的清单 盘点各领域的包管理器 使用 jstat 命令查看 JVM 的GC信息 记录一个在js环境生成随机(伪造)数据的小插件,方便生成调试数据 使用Puppeter实现的全屏网页截图的小工具 开启 mysql 的 general_log
本地安装Dify
网无忌 · 2026-06-18 · via 博客园 - 网无忌

一、提前准备

  1. 准备好 WSL 虚拟机,比如:Ubuntu
  2. 准备好 DockerDesktop

二、安装Dify

  1. 获取Dify文件

在WSL中执行:

#在用户目录创建dify目录
mkdir -p ~/dify && cd ~/dify

#使用Git拉取Dify的最新版本
git clone https://github.com/langgenius/dify.git
#国内镜像:https://gitcode.com/GitHub_Trending/di/dify.git

#或者在windwos中手动下载指定发行版的zip压缩包:
#比如:https://gitcode.com/GitHub_Trending/di/dify/tags/1.14.2
#下载后移动到WSL用户目录,再解压:
#unzip dify-1.14.2.zip
  1. 配置Dify
#切换到dify的docker目录
cd dify-1.14.2/docker

#基于默认配置创建本地配置文件
cp .env.example .env

修改主要配置项:

  • EXPOSE_NGINX_PORT=80 # 服务端口
  • APP_SECRET_KEY= # 建议设置复杂密码
  • DB_PASSWORD= # 数据库密码
  • REDIS_PASSWORD= # Redis密码
  • PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple(或 https://mirrors.aliyun.com/pypi/simple
  • CELERY_BROKER_URL=redis://:<实际的Redis密码>@redis:6379/1
  1. 启动容器
# 首次启动拉取镜像并创建容器(后台运行)
docker compose up -d

# 查看启动进度
docker compose logs -f

# 查看运行状态
docker compose ps

# 停止服务并清除容器及数据
docker compose down

# 启动服务
docker compose start

# 停止服务
docker compose stop

#重启服务
docker compose restart

首次启动需要下载约 10+ 个镜像,耗时 5-15 分钟(取决于网络)。