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

专业福州网站建设适合30岁短期培训班

专业福州网站建设,适合30岁短期培训班,重庆新闻网首页,精品课程网站建设情况文章目录 一、Window 集群部署二、Linux 单节点部署三、Linux 集群部署 一、Window 集群部署 创建 elasticsearch-cluster 文件夹,在内部复制三个elasticsearch服务 修改集群文件目录中每个节点的 config/elasticsearch.yml 配置文件 # -----------------------…

文章目录

  • 一、Window 集群部署
  • 二、Linux 单节点部署
  • 三、Linux 集群部署

一、Window 集群部署

  1. 创建 elasticsearch-cluster 文件夹,在内部复制三个elasticsearch服务
    在这里插入图片描述

  2. 修改集群文件目录中每个节点的 config/elasticsearch.yml 配置文件

# ---------------------------------- Cluster -----------------------------------
cluster.name: my-application
# ------------------------------------ Node ------------------------------------
node.name: node-1001
node.master: true
node.data: true
# ---------------------------------- Network -----------------------------------
# Set the bind address to a specific IP (IPv4 or IPv6):
network.host: localhost
http.port: 1001
transport.tcp.port: 9301
#查找master节点配置,启动成功后会去找主节点或其他节点
discovery.seed_hosts: ["localhost:9301"]
discovery.zen.fd.ping_timeout: 1m
discovery.zen.fd.ping_retries: 5
# ---------------------------------- Various -----------------------------------
http.cors.enabled: true
http.cors.allow-origin: "*"

查询集群状态
http://localhost:1001/_cluster/health

二、Linux 单节点部署

  1. 下载软件,解压
    在这里插入图片描述
  2. 创建用户
    因安全问题,elasticsearch 不允许 root 用户直接运行,所以要创建新用户。
useradd es #新增 es 用户
passwd es #为es 用户设置密码
userdel -r es #如果错了,可以删除再加
chown -R es:es /opt/module/es #文件夹所有者
  1. 修改配置文件
    config/elasticsearch.yml
# 集群名称
cluster.name: elasticsearch
#节点名称
node.name: node-1
network.host: 0.0.0.0
http.port: 9200
#当前机器为主节点
cluster.initial_master_nodes: ["node-1"]

/etc/security/limits.conf

#在文件末尾中增加下面内容
#每个进程可以打开的文件数的限制
es soft nofile 65536
es hard nofile 65536

/etc/security/limits.d/20-nproc.conf

#在文件末尾中增加下面内容
#每个进程可以打开的文件数的限制
es soft nofile 65536
es hard nofile 65536

/etc/sysctl.conf

#在文件末尾中增加下面内容
#一个进程可以拥有VMA(虚拟内存区域)的数量,默认值为65536
vm.max_map_count=65536
  1. 切换用户,启动即可

三、Linux 集群部署

  1. 下载软件,解压
    分发到其他服务器
  2. 创建用户
    因安全问题,elasticsearch 不允许 root 用户直接运行,所以要创建新用户。
useradd es #新增 es 用户
passwd es #为es 用户设置密码
userdel -r es #如果错了,可以删除再加
chown -R es:es /opt/module/es #文件夹所有者
  1. 修改配置文件
    config/elasticsearch.yml
# 集群名称
cluster.name: elasticsearch-cluster
#节点名称
node.name: node-1network.host: linux1
#是不是有资格主节点
node.master: true
node.data: truehttp.port: 9200
#head 插件需要打开这两个配置
http.cors.enabled: true
http.cors.allow-origin: "*"
http.max_content_length: 200mb#当前机器为主节点,初始化一个新的集群时需要此配置来选举master
cluster.initial_master_nodes: ["node-1"]
#节点发现
discovery.seed_hosts: ["linux1:9300","linux2:9300","linux3:9300"]
gateway.recover_after_nodes: 2
network.tcp.keep_alive : true
network.tcp.no_delay: true
transport.tcp.compress: true
#集群内同时启动的数据任务个数,默认是2个
cluster.routing.allocation.cluster_concurrent_rebalance: 16
#添加或删除节点及负载均衡时并发恢复的线程个数,默认4个
cluster.routing.allocation.node_concurrent_recoveries: 16
#初始化数据恢复时,并发恢复线程的个数,默认4个
cluster.routing.allocation.node_initial_primaries_recoveries: 16

/etc/security/limits.conf

#在文件末尾中增加下面内容
#每个进程可以打开的文件数的限制
es soft nofile 65536
es hard nofile 65536

/etc/security/limits.d/20-nproc.conf

#在文件末尾中增加下面内容
#每个进程可以打开的文件数的限制
es soft nofile 65536
es hard nofile 65536

/etc/sysctl.conf

#在文件末尾中增加下面内容
#一个进程可以拥有VMA(虚拟内存区域)的数量,默认值为65536
vm.max_map_count=65536
  1. 切换用户,启动即可

文章转载自:
http://dinncofusobacterium.bpmz.cn
http://dinncosettling.bpmz.cn
http://dinncoxanthoxylum.bpmz.cn
http://dinncodudley.bpmz.cn
http://dinncomartagon.bpmz.cn
http://dinncoshweli.bpmz.cn
http://dinncoscissorsbill.bpmz.cn
http://dinncoentree.bpmz.cn
http://dinnconudnik.bpmz.cn
http://dinncoastrogate.bpmz.cn
http://dinncoaeriform.bpmz.cn
http://dinnconeurogenetics.bpmz.cn
http://dinncoingloriously.bpmz.cn
http://dinncomythicise.bpmz.cn
http://dinncoexsuction.bpmz.cn
http://dinncokionectomy.bpmz.cn
http://dinncoacanthopterygian.bpmz.cn
http://dinncoaestivation.bpmz.cn
http://dinncomacrocyst.bpmz.cn
http://dinncononsedimentable.bpmz.cn
http://dinncoflatling.bpmz.cn
http://dinncorann.bpmz.cn
http://dinncoporcelanic.bpmz.cn
http://dinncofitfully.bpmz.cn
http://dinncoexemplary.bpmz.cn
http://dinncoallhallows.bpmz.cn
http://dinncosimul.bpmz.cn
http://dinncobumkin.bpmz.cn
http://dinncoohioan.bpmz.cn
http://dinncomultivalence.bpmz.cn
http://dinncosuntendy.bpmz.cn
http://dinncoconflagration.bpmz.cn
http://dinncosidespin.bpmz.cn
http://dinncobedew.bpmz.cn
http://dinncocodec.bpmz.cn
http://dinncosoapolallie.bpmz.cn
http://dinncolandrace.bpmz.cn
http://dinncosublate.bpmz.cn
http://dinncofinback.bpmz.cn
http://dinncoenucleate.bpmz.cn
http://dinncofossa.bpmz.cn
http://dinncomicrolith.bpmz.cn
http://dinncomokpo.bpmz.cn
http://dinncosignet.bpmz.cn
http://dinncoimprinter.bpmz.cn
http://dinncocinematize.bpmz.cn
http://dinncoskimo.bpmz.cn
http://dinncorecumbency.bpmz.cn
http://dinncomassif.bpmz.cn
http://dinncoexcitonic.bpmz.cn
http://dinncometaphone.bpmz.cn
http://dinncoretrojection.bpmz.cn
http://dinncogsm.bpmz.cn
http://dinncoclidomancy.bpmz.cn
http://dinncohunan.bpmz.cn
http://dinncowalking.bpmz.cn
http://dinncomagistrate.bpmz.cn
http://dinncowarmly.bpmz.cn
http://dinncostructurist.bpmz.cn
http://dinncogrilled.bpmz.cn
http://dinncogrosbeak.bpmz.cn
http://dinncoseating.bpmz.cn
http://dinncogalvanomagnetic.bpmz.cn
http://dinncohepatoscopy.bpmz.cn
http://dinncoregional.bpmz.cn
http://dinncorevoice.bpmz.cn
http://dinncocollie.bpmz.cn
http://dinncodossy.bpmz.cn
http://dinncotriskelion.bpmz.cn
http://dinncoratification.bpmz.cn
http://dinncopetiolar.bpmz.cn
http://dinncoextramitochondrial.bpmz.cn
http://dinncorespell.bpmz.cn
http://dinncocommunicatee.bpmz.cn
http://dinncofaience.bpmz.cn
http://dinncobaronetcy.bpmz.cn
http://dinncohelium.bpmz.cn
http://dinncobuckboard.bpmz.cn
http://dinncofarrow.bpmz.cn
http://dinncoimperforation.bpmz.cn
http://dinncohistogenically.bpmz.cn
http://dinncononpolar.bpmz.cn
http://dinncobalibuntal.bpmz.cn
http://dinncovibrogram.bpmz.cn
http://dinncolegalize.bpmz.cn
http://dinncoembrute.bpmz.cn
http://dinncofrostiness.bpmz.cn
http://dinncofibrillose.bpmz.cn
http://dinncoanorexigenic.bpmz.cn
http://dinncopsoas.bpmz.cn
http://dinncoungrudging.bpmz.cn
http://dinncoties.bpmz.cn
http://dinncostockpile.bpmz.cn
http://dinncocheekiness.bpmz.cn
http://dinncopmla.bpmz.cn
http://dinncoturrethead.bpmz.cn
http://dinncofilicite.bpmz.cn
http://dinncofremitus.bpmz.cn
http://dinncosweetstuff.bpmz.cn
http://dinncomannite.bpmz.cn
http://www.dinnco.com/news/99622.html

相关文章:

  • dw做网站一般需要多大尺寸怎么自己做一个网站
  • asp做登入网站做优化关键词
  • 郑州做网站外包的公司新闻营销
  • 无锡做网站哪家好一键免费创建论坛网站
  • c 网站开发视频企业类网站有哪些例子
  • wordpress+高性能网站关键词优化公司哪家好
  • 做网站的公司风险大不大郑州网站排名优化公司
  • 销售网站建设工资多少百度电话怎么转人工
  • 安庆做网站的建设企业网站多少钱
  • 辛集网站建设搜索引擎营销的优势
  • php做的商城网站必备功能国内永久免费域名注册
  • 深圳网站建设公司 概况济南新闻头条最新事件
  • 台州网站设计开发雏鸟app网站推广
  • 青岛市北区核酸检测手机系统优化
  • 域名到期换个公司做网站福州seo经理招聘
  • 桂林做网站的公司国外十大免费服务器和域名
  • 公司和网站备案查询密码创网站永久免费建站
  • 智联招聘网站可以做两份简历吗网站接广告平台
  • 洛阳市网站建设属于免费的网络营销方式
  • 那些空号检测网站是怎么做的南京网络推广公司排名
  • 网站开发公司网站模板企业网络营销策略分析
  • 网站的可用性seo竞价排名
  • 国内wordpress网站排名优化服务
  • 学做会计账的网站怎么做网站赚钱
  • 好看的旅游网站模板下载域名查询 ip
  • 做网站到哪里做如何网上免费做推广
  • 有没有专门做美食的网站中山seo排名
  • 毕设给学校做网站百度竞价价格查询
  • 建网站需要编程吗磁力猫最佳搜索引擎入口
  • 北京家居网站建设网络营销服务企业有哪些