linux远程部署dify和mac本地部署dify

文章目录

dify部署

远程服务器,xhell or finalshell 连接

# 本地安装

linux服务器部署

  1. 安装git and docker

    复制代码
    sudo yum install git-all

https://blog.csdn.net/Cosmoshhhyyy/article/details/136698105?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522117869e7b1a84ebb919adb0822f4b23f%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D\&request_id=117869e7b1a84ebb919adb0822f4b23f\&biz_id=0\&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1\~rank_v31_ecpm-4-136698105-null-null.nonecase\&utm_term=docker\&spm=1018.2226.3001.4450

  1. 下载开源代码

    复制代码
    sudo git clone https://github.com/langgenius/dify.git
    git clone https://gitee.com/mirrors/dify.git # 国内下的快一点
  2. docker部署

    复制代码
    cd dify/docker
    sudo docker compose up -d

直接给我服务器干爆了,看来至少要4核2g以上才能启动。

  1. 启动

输入ip:端口即可。

mac本地部署

  1. 还是下载docker

  2. 下载代码(同linux操作)

    sudo git clone https://github.com/langgenius/dify.git
    git clone https://gitee.com/mirrors/dify.git # 国内下的快一点

  3. 启动

    cd dify/docker
    cp .env.example .env
    docker compose up -d

  4. 浏览器输入

    复制代码
    localhost/install

    设置账户和密码即可登陆成功。

问题

  1. docker启动时下载不下来

    可以挂梯子或者配置docker镜像。

  2. iptables 问题

    重启docker试试。

相关推荐
morliz子轩6 分钟前
基于WSL搭建Ubuntu 22.04.x LTS开发环境
linux·运维·ubuntu
BJ_Bonree40 分钟前
数智先锋 | 告别运维黑盒!豪鹏科技×Bonree ONE构建全栈智能可观测体系
运维·科技
Janspran1 小时前
嵌入式linux学习 -- 进程和线程
linux·运维·学习
行星0082 小时前
mac 通过homebrew 安装和使用nvm
macos·npm·node.js
路多辛3 小时前
Debian新一代的APT软件源配置文件格式DEB822详解
linux·运维·ubuntu·debian
-VE-3 小时前
Linux线程控制
linux
驱动探索者4 小时前
USB ADB 简介
linux·adb·驱动·usb
油丶酸萝卜别吃4 小时前
nginx配置代理服务器
运维·网络·nginx
maomao1713144 小时前
Jenkins 环境部署
运维·jenkins