Dify 是一款開源的大語言模型(LLM) 應用開發平臺。它融合了后端即服務(Backend as Service)和 LLMOps 的理念,使開發者可以快速搭建生產級的生成式 AI 應用。即使你是非技術人員,也能參與到 AI 應用的定義和數據運營過程中。
前提條件
安裝 Dify 之前, 請確保你的機器已滿足最低安裝要求:
CPU >= 2 Core
RAM >= 4 GiB
Docker 19.03 or later 和 Docker Compose 1.28 or later
克隆 Dify 源代碼至本地環境。
# 假設當前最新版本為 0.15.3
git clone https://github.com/langgenius/dify.git --branch 0.15.3
?下載鏡像包
下載地址:百度網盤、夸克網盤
# 上傳下載好的鏡像到/opt/,解壓
gunzip /opt/all_images.tar.gz# 導入鏡像
docker load < /op/all_images.tar# 查看導入鏡像
docker images REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu/squid latest dae40da440fe 2 weeks ago 243MB
postgres 15-alpine afbf3abf6aeb 2 weeks ago 273MB
langgenius/dify-plugin-daemon 0.0.2-local 2df4860e4330 4 weeks ago 902MB
langgenius/dify-web 0.15.3 f0fae584255f 5 weeks ago 436MB
langgenius/dify-api 0.15.3 e05373163e63 5 weeks ago 2.97GB
nginx latest b52e0b094bc0 5 weeks ago 192MB
redis 6-alpine 6dd588768b9b 2 months ago 30.2MB
langgenius/dify-sandbox 0.2.10 4328059557e8 5 months ago 567MB
semitechnologies/weaviate 1.19.0 8ec9f084ab23 22 months ago 52.5MB
啟動dify?
# 拉取dify
git clone https://github.com/langgenius/dify.git --branch 0.15.3# 進入docker目錄
cd dify-main/docker/# 復制環境配置文件
cp .env.example .env# 啟動容器
docker-compose up -d
訪問 Dify
# 本地環境
http://localhost/install
# 服務器環境
http://your_server_ip/install