文章

顯示從 4月, 2026 起發佈的文章

[筆記] Dify 開源 AI 模板套件

圖片
安裝 Dify ( 開源 AI 模板套件 ) 硬體需求: CPU 至少雙核,超過 4GB 記憶體 軟體需求: Windows with WSL2 ,安裝 Docker Desktop 步驟: 1.        git clone --branch "$(curl -s https://api.github.com/repos/langgenius/dify/releases/latest | jq -r .tag_name)" https://github.com/langgenius/dify.git 從網路下載 Dify ,過程如果需要安裝 jq 指令,請執行 sudo apt install jq –y 。 2.          進到 dify/docker 目錄,並複製 cp .env.example .env ,由於隱藏檔必須 ls –a 才看得到。 3.          執行 docker compose up –d ,便開始下載相關鏡像。 4.          五個核心服務 (api 、 worker 、 worker_beat 、 web 、 plugin_daemon) ,以及六個依賴的元件 (weaviate 、 db_postgres 、 redis 、 nginx 、 ssrf_proxy 、 sandbox) 被 docker 執行。下載的鏡像如下圖所示。   5.          開啟瀏覽器 http://localhost/install ,便開始安裝 Dify 應用程式,設定使用者與密碼。 6.     從 Ubuntu 本地進到 http://localhost/apps ,如...