当前位置: 首页 > news >正文

网站怎么做虚拟连接做网站的工作好吗

网站怎么做虚拟连接,做网站的工作好吗,网站建设评估报告,附近展览制作工厂本地部署 RAGFlow - 修改默认端口 1. 前提条件2. 部署 RAGFlow 1. 前提条件 确保 vm.max_map_count 不小于 262144: 如需确认 vm.max_map_count 的大小: sysctl vm.max_map_count如果 vm.max_map_count 的值小于 262144,可以进行重置&…

本地部署 RAGFlow - 修改默认端口

    • 1. 前提条件
    • 2. 部署 RAGFlow

1. 前提条件

确保 vm.max_map_count 不小于 262144:

如需确认 vm.max_map_count 的大小:

sysctl vm.max_map_count

如果 vm.max_map_count 的值小于 262144,可以进行重置:

# 这里我们设为 262144:
sudo sysctl -w vm.max_map_count=262144

你的改动会在下次系统重启时被重置。如果希望做永久改动,还需要在 /etc/sysctl.conf 文件里把 vm.max_map_count 的值再相应更新一遍:

vm.max_map_count=262144

2. 部署 RAGFlow

克隆仓库:

git clone https://github.com/infiniflow/ragflow.git
cd ragflow/docker

修改默认端口(为了不与Dify和Langfush冲突)和默认镜像地址(解决国内网络访问Docker镜像网站问题),这里使用git diff命令显示修改的地方。

git diff docker/.env
diff --git a/docker/.env b/docker/.env
index 2b0b5b8b..db206212 100644
--- a/docker/.env
+++ b/docker/.env
@@ -40,7 +40,7 @@ INFINITY_HOST=infinity# Port to expose Infinity API to the hostINFINITY_THRIFT_PORT=23817INFINITY_HTTP_PORT=23820
-INFINITY_PSQL_PORT=5432
+INFINITY_PSQL_PORT=5434# The password for MySQL.MYSQL_PASSWORD=infini_rag_flow
@@ -53,13 +53,13 @@ MYSQL_DBNAME=rag_flowMYSQL_PORT=5455# The hostname where the MinIO service is exposed
-MINIO_HOST=minio
+MINIO_HOST=minio_ragflow# The port used to expose the MinIO console interface to the host machine,# allowing EXTERNAL access to the web-based console running inside the Docker container.
-MINIO_CONSOLE_PORT=9001
+MINIO_CONSOLE_PORT=9003# The port used to expose the MinIO API service to the host machine,# allowing EXTERNAL access to the MinIO object storage service running inside the Docker container.
-MINIO_PORT=9000
+MINIO_PORT=9019# The username for MinIO.# When updated, you must revise the `minio.user` entry in service_conf.yaml accordingly.MINIO_USER=rag_flow
@@ -68,10 +68,10 @@ MINIO_USER=rag_flowMINIO_PASSWORD=infini_rag_flow# The hostname where the Redis service is exposed
-REDIS_HOST=redis
+REDIS_HOST=redis_ragflow# The port used to expose the Redis service to the host machine,# allowing EXTERNAL access to the Redis service running inside the Docker container.
-REDIS_PORT=6379
+REDIS_PORT=6381# The password for Redis.REDIS_PASSWORD=infini_rag_flow
git diff docker/docker-compose.yml
diff --git a/docker/.env b/docker/.env
index 2b0b5b8b..db206212 100644
--- a/docker/.env
+++ b/docker/.env
@@ -40,7 +40,7 @@ INFINITY_HOST=infinity# Port to expose Infinity API to the hostINFINITY_THRIFT_PORT=23817INFINITY_HTTP_PORT=23820
-INFINITY_PSQL_PORT=5432
+INFINITY_PSQL_PORT=5434# The password for MySQL.MYSQL_PASSWORD=infini_rag_flow
@@ -53,13 +53,13 @@ MYSQL_DBNAME=rag_flowMYSQL_PORT=5455# The hostname where the MinIO service is exposed
-MINIO_HOST=minio
+MINIO_HOST=minio_ragflow# The port used to expose the MinIO console interface to the host machine,# allowing EXTERNAL access to the web-based console running inside the Docker container.
-MINIO_CONSOLE_PORT=9001
+MINIO_CONSOLE_PORT=9003# The port used to expose the MinIO API service to the host machine,# allowing EXTERNAL access to the MinIO object storage service running inside the Docker container.
-MINIO_PORT=9000
+MINIO_PORT=9019# The username for MinIO.# When updated, you must revise the `minio.user` entry in service_conf.yaml accordingly.MINIO_USER=rag_flow
@@ -68,10 +68,10 @@ MINIO_USER=rag_flowMINIO_PASSWORD=infini_rag_flow# The hostname where the Redis service is exposed
-REDIS_HOST=redis
+REDIS_HOST=redis_ragflow# The port used to expose the Redis service to the host machine,# allowing EXTERNAL access to the Redis service running inside the Docker container.
-REDIS_PORT=6379
+REDIS_PORT=6381# The password for Redis.REDIS_PASSWORD=infini_rag_flow(base) root@DESKTOP-31CKLQ1:/u01/workspace/ragflow-main/docker# git diff docker-compose.yml
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index 676f167d..e7036643 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -6,12 +6,12 @@ services:depends_on:mysql:condition: service_healthy
-    image: ${RAGFLOW_IMAGE}
+    image: docker.1ms.run/${RAGFLOW_IMAGE}container_name: ragflow-serverports:- ${SVR_HTTP_PORT}:9380
-      - 80:80
-      - 443:443
+      - 50080:80
+      - 50443:443volumes:- ./ragflow-logs:/ragflow/logs- ./nginx/ragflow.conf:/etc/nginx/conf.d/ragflow.conf
git diff docker/docker-compose-base.yml
diff --git a/docker/docker-compose-base.yml b/docker/docker-compose-base.yml
index 93804d5a..abf7e9e4 100644
--- a/docker/docker-compose-base.yml
+++ b/docker/docker-compose-base.yml
@@ -3,7 +3,7 @@ services:container_name: ragflow-es-01profiles:- elasticsearch
-    image: elasticsearch:${STACK_VERSION}
+    image: docker.1ms.run/elasticsearch:${STACK_VERSION}volumes:- esdata01:/usr/share/elasticsearch/dataports:
@@ -39,7 +39,7 @@ services:container_name: ragflow-infinityprofiles:- infinity
-    image: infiniflow/infinity:v0.6.0-dev3
+    image: docker.1ms.run/infiniflow/infinity:v0.6.0-dev3volumes:- infinity_data:/var/infinity- ./infinity_conf.toml:/infinity_conf.toml
@@ -68,7 +68,7 @@ services:mysql:# mysql:5.7 linux/arm64 image is unavailable.
-    image: mysql:8.0.39
+    image: docker.1ms.run/mysql:8.0.39container_name: ragflow-mysqlenv_file: .envenvironment:
@@ -95,8 +95,8 @@ services:retries: 3restart: on-failure-  minio:
-    image: quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z
+  minio_ragflow:
+    image: docker.1ms.run/minio/minio:RELEASE.2023-12-20T01-00-02Zcontainer_name: ragflow-miniocommand: server --console-address ":9001" /dataports:
@@ -108,21 +108,21 @@ services:- MINIO_ROOT_PASSWORD=${MINIO_PASSWORD}- TZ=${TIMEZONE}volumes:
-      - minio_data:/data
+      - minio_ragflow_data:/datanetworks:- ragflowrestart: on-failure-  redis:
+  redis_ragflow:# swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/valkey/valkey:8
-    image: valkey/valkey:8
+    image: docker.1ms.run/valkey/valkey:8container_name: ragflow-rediscommand: redis-server --requirepass ${REDIS_PASSWORD} --maxmemory 128mb --maxmemory-policy allkeys-lruenv_file: .envports:- ${REDIS_PORT}:6379volumes:
-      - redis_data:/data
+      - redis_ragflow_data:/datanetworks:- ragflowrestart: on-failure
@@ -136,9 +136,9 @@ volumes:driver: localmysql_data:driver: local
-  minio_data:
+  minio_ragflow_data:driver: local
-  redis_data:
+  redis_ragflow_data:driver: local

启动,

docker compose -p ragflow -f docker-compose.yml up -d

一定要指定 -p ragflow,否则和Dify项目冲突,因为他们的docker-compose.yml文件都在docker目录下面。

打开 http://ip:50080 进行访问。

完结!

http://www.dtcms.com/a/437672.html

相关文章:

  • 深圳做网站的公司哪家好阿里云网站开发
  • 服务器除了做网站还能做什么wordpress自适应插件
  • 常德建设网站制作宁波做百度网站
  • 众车网是哪家公司网站开发一个企业网站需要多少钱
  • 做外贸怎么网站找客户信息温州网站建设免费咨询
  • 网站建设开发协议书搭建一个app平台需要多少钱
  • 台州做网站是什么网站相关推荐怎么做
  • 线上平台运营方案昆明seo网站排名优化
  • 建立平台网站要多久app界面设计包括哪几部分
  • 网站建设用的软件番禺人才网站
  • 充电宝网站建设策划书网站新闻前置备案
  • 咸阳网站建设专业公司哪家好济南seo优化外包服务
  • 昌江县住房和城乡建设局网站能通过淘宝网站做淘宝客吗
  • 建网站需要的费用四川建设机械网站
  • 网站搭建系统都有哪些做网站费用会计分录
  • 专业的网站建设制作服务中企做的网站太原
  • 可以转app的网站怎么做化妆品网站建设
  • wordpress整站下载wordpress仿知乎社区
  • 网站图片翻页效果如何做seo干什么
  • 把网站放在虚拟主机上 怎么进入网站后台soapclient WordPress
  • 衡阳网站建设ss0734阿里云建设网站流程
  • vmware做网站步骤宝塔面板加wordpress
  • 怎么提升搜狗网站排名电子商务网站建设 以为例
  • 湖南省水运建设投资集团网站义乌公司网站制作
  • collectfrom企业网站模版上海做seo的公司
  • 哪个网站做律师推广只做英文网站 域名有什么要求
  • 做个产品网站要多少钱最简洁的wordpress主题
  • 建网站专用网站武强网站建设
  • 网站怎样秒收录如何编写网站建设
  • 国外网站不需要备案吗少儿编程10大品牌