本文詳細介紹了如何安裝和設置 n8n 工作流自動化平台,包括安裝 Docker、部署 n8n 平台及設置本地大語言模型。
This article details how to install and set up the n8n workflow automation platform, including Docker installation, n8n deployment, and local large language model setup.
前往 Docker 官網下載 Docker Desktop,根據您的作業系統選擇合適的版本,並按照安裝指示完成安裝。
Visit the Docker website to download Docker Desktop, choose the appropriate version for your operating system, and follow the installation instructions.
開啟命令提示字元,執行以下命令:
docker volume create n8n_data
然後執行 Docker Run 命令來拉取並啟動 n8n 映像檔。
Open the command prompt and execute the following command:
docker volume create n8n_data
Then run the Docker Run command to pull and start the n8n image.
從 Ollama 官網下載並安裝 Ollama,這是一個本地大語言模型管理平台。
Download and install Ollama from the official website, which is a local large language model management platform.
在命令提示字元中執行:
ollama pull qwen2.5:7b
下載千問 2.5 模型作為 AI Agent 的基礎模型。
Execute in the command prompt:
ollama pull qwen2.5:7b
Download the Qwen 2.5 model as the foundation model for your AI Agent.
使用 ollama list 命令確認模型已成功安裝。
Use the ollama list command to confirm that the model has been successfully
installed.
訪問 n8n 網頁介面,創建管理員帳戶(需使用有效電子郵件以接收授權密鑰)。
接收授權密鑰後,在設定中激活授權。
Access the n8n web interface, create an admin account (using a valid email to receive the license key).
After receiving the license key, activate it in the settings.