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

阿里云主机建网站目前推广平台都有哪些

阿里云主机建网站,目前推广平台都有哪些,建筑人才网邀约投递,网站制作潍坊区域原文地址:elasticsearch集群部署及加密通讯 – 无敌牛 欢迎参观我的个人博客:无敌牛 – 技术/著作/典籍/分享等 第零步,准备 给各台设备配置虚拟主机名,这样集群不依赖IP,即使IP变动,改动也更方便。参考…

原文地址:elasticsearch集群部署及加密通讯 – 无敌牛

欢迎参观我的个人博客:无敌牛 – 技术/著作/典籍/分享等

第零步,准备

给各台设备配置虚拟主机名,这样集群不依赖IP,即使IP变动,改动也更方便。参考往期文章:https://www.madbull.site/?p=1094 第三步 3.2 一节。

第一步,颁发证书

本次文章自建CA根证书,以自建证书给各个子节点颁发服务端证书。

参看这篇文章:https://www.madbull.site/?p=1111 自建根证书,并用此根证书给三个设备分别颁发证书。

注意:在创建服务端证书时,用到的 csr.conf 文件中,commonNamealt_names 配置要根据自己的实际情况做相应修改。

第二步,修改配置文件

修改 /etc/elasticsearch/elasticsearch.yml 文件,内容如下:

cluster.name: CLUSTERNAMEXXX
node.name: xxxxnode1path.data: /data/xxxx/data 
path.logs: /data/xxxx/logs
path.repo: /data/xxxx/esbackupbootstrap.memory_lock: true
network.host: xxxxnode1, 127.0.0.1
discovery.seed_hosts: ["xxxxnode1", "xxxxnode2", "xxxxnode3"]action.destructive_requires_name: falsexpack.security.enabled: truexpack.security.enrollment.enabled: truexpack.security.http.ssl:enabled: truekey: certs/private.keycertificate: certs/public.crtcertificate_authorities: certs/CAs/myCA.crtverification_mode: certificatexpack.security.transport.ssl:enabled: trueverification_mode: certificatekey: certs/private.keycertificate: certs/public.crtcertificate_authorities: certs/CAs/myCA.crtcluster.initial_master_nodes: ["xxxxnode1", "xxxxnode2", "xxxxnode3"]

配置项解释:

cluster.name: 集群名称,同一个集群里的各个节点,配置相同集群名称。

node.name: 当前服务节点名称,在集群里名字是唯一的

path.data: 数据保存路径

path.logs: 日志存储路径

path.repo: 数据库快照备份路径

bootstrap.memory_lock: 是否锁定内存,不允许磁盘交换。如果大内存,可以设置为true;否则内存空间不够则可能数据库服务启动失败。

network.host: 如果不考虑设备有多个IP的情况,可以直接配置成 0.0.0.0 或者 _site_。集群需要跨主机访问,所以需要开放端口,不能只绑定在 _local_ 或者 127.0.0.1 。

discovery.seed_host: 用于发现集群中其他节点的初始主机列表。

action.destructive_requires_name: 控制执行某些破坏性操作,设置 false 操作验证会减少。

xpack.security.enabled: 是否启用xpack安全特征,包括认证、授权和加密等。

xpack.security.enrollment.enabled: 是否启用节点自动加入集群。

xpack.security.http.ssl: https访问相关配置。

xpack.security.transport.ssl: 节点间通讯通过ssl加密相关配置。

verification_mode: 验证模式,此处为证书

key: 私钥文件

certificate: 证书文件

certificate_authorities: 信任的CA根证书文件

cluster.initial_master_nodes: 指定哪些节点可以作为主节点 master

需要根据各个服务器自身的情况做调整。

第三步,安装证书

把第一步申请的服务端私钥、服务端证书 和 CA根证书,放在 key、certificate、certificate_authorities 参数指定的文件路径。目录结构如下,并确保文件对minio用户可读。此处用了软连接,也是同样的效果,可以把对应的文件直接放在指定的位置上。

注意:三台设备用到的根证书,也就是 CAs/myCA.crt 是同一个,但是 服务端私钥和服务端证书则各不相同。xpack.security.http.ssl 下的配置 和 xpack.security.transport.ssl 下的配置可以不是同一个文件。

elasticsearch集群 不信任系统的证书,所以把CA证书添加到系统信任列表不起作用,必须把根证书放在 certificate_authorities 指定的位置。

最后

三台设备重启 elasticsearch 服务: systemctl restart elasticsearch。

如果 原来的 elasticsearch 库中已经有数据,设备只会保留主设备的数据,其他设备的数据将被删除。

如果遇到三台设备都只找到自己,并选定自己是主设备,且找不到其他设备,尝试删除数据目录(也就是path.data配置项指定的目录)下 _state 文件夹下的所有内容,重启 elasticsearch 服务尝试组建集群。


elasticsearch基本操作,参考文章:https://www.madbull.site/?p=424

python开发基本操作参考示例:https://www.madbull.site/?p=606


文章转载自:
http://dinnconeuration.ydfr.cn
http://dinncoweighty.ydfr.cn
http://dinncoscreenwriting.ydfr.cn
http://dinncoleatherback.ydfr.cn
http://dinncocourant.ydfr.cn
http://dinncoelectrooptics.ydfr.cn
http://dinncocrin.ydfr.cn
http://dinncomuscicolous.ydfr.cn
http://dinncohurtle.ydfr.cn
http://dinncomiserably.ydfr.cn
http://dinncocanzona.ydfr.cn
http://dinncointrusively.ydfr.cn
http://dinncofifi.ydfr.cn
http://dinncoperidiolum.ydfr.cn
http://dinncorendzina.ydfr.cn
http://dinncociq.ydfr.cn
http://dinncoglycol.ydfr.cn
http://dinncoblushingly.ydfr.cn
http://dinncothrombolytic.ydfr.cn
http://dinncovavasour.ydfr.cn
http://dinncomethoxide.ydfr.cn
http://dinncorrb.ydfr.cn
http://dinncoforsworn.ydfr.cn
http://dinncoeleuin.ydfr.cn
http://dinncofootware.ydfr.cn
http://dinncoovertrump.ydfr.cn
http://dinncopulsatile.ydfr.cn
http://dinncounentitled.ydfr.cn
http://dinncosnowhole.ydfr.cn
http://dinncosilly.ydfr.cn
http://dinncorunround.ydfr.cn
http://dinncographematic.ydfr.cn
http://dinncoaubrietia.ydfr.cn
http://dinncopasse.ydfr.cn
http://dinncorhinorrhea.ydfr.cn
http://dinncolandswoman.ydfr.cn
http://dinncowinebibbing.ydfr.cn
http://dinncofreemasonic.ydfr.cn
http://dinncophotoscanner.ydfr.cn
http://dinncoerythroblast.ydfr.cn
http://dinncobraincase.ydfr.cn
http://dinncodpn.ydfr.cn
http://dinncodestruction.ydfr.cn
http://dinncoirrational.ydfr.cn
http://dinncoovertake.ydfr.cn
http://dinncosemiparasitic.ydfr.cn
http://dinncomaximus.ydfr.cn
http://dinncojocosely.ydfr.cn
http://dinncomisprice.ydfr.cn
http://dinncochainbelt.ydfr.cn
http://dinncowoollen.ydfr.cn
http://dinncoaward.ydfr.cn
http://dinncosubtropics.ydfr.cn
http://dinncodoggo.ydfr.cn
http://dinncoatmospherium.ydfr.cn
http://dinncolarynges.ydfr.cn
http://dinncoanhwei.ydfr.cn
http://dinncoenclitic.ydfr.cn
http://dinncopaper.ydfr.cn
http://dinncobinomial.ydfr.cn
http://dinncopapilla.ydfr.cn
http://dinncoachaetous.ydfr.cn
http://dinncocolpitis.ydfr.cn
http://dinncolutist.ydfr.cn
http://dinncostrawboard.ydfr.cn
http://dinncooutpatient.ydfr.cn
http://dinncobollard.ydfr.cn
http://dinncopulsimeter.ydfr.cn
http://dinncoroque.ydfr.cn
http://dinncomandeville.ydfr.cn
http://dinncophonocardiogram.ydfr.cn
http://dinncotoday.ydfr.cn
http://dinncoimportant.ydfr.cn
http://dinncolocked.ydfr.cn
http://dinncoegghead.ydfr.cn
http://dinncoadieu.ydfr.cn
http://dinncofogey.ydfr.cn
http://dinnconmu.ydfr.cn
http://dinncopaddlewheeler.ydfr.cn
http://dinncocottage.ydfr.cn
http://dinncoanele.ydfr.cn
http://dinncomathematics.ydfr.cn
http://dinncobulbul.ydfr.cn
http://dinncoislamic.ydfr.cn
http://dinncohero.ydfr.cn
http://dinncocollision.ydfr.cn
http://dinncoinsincerity.ydfr.cn
http://dinncokennelly.ydfr.cn
http://dinncoscruffy.ydfr.cn
http://dinncography.ydfr.cn
http://dinncohydrocyclone.ydfr.cn
http://dinncocetological.ydfr.cn
http://dinncopomiferous.ydfr.cn
http://dinncothymey.ydfr.cn
http://dinncointriguant.ydfr.cn
http://dinncospiritual.ydfr.cn
http://dinncopremo.ydfr.cn
http://dinncopalmate.ydfr.cn
http://dinncomanifdder.ydfr.cn
http://dinncosahrawi.ydfr.cn
http://www.dinnco.com/news/123701.html

相关文章:

  • 万维网站注册百度开户
  • 百度推广需要自己做网站吗做一套二级域名网站怎么做
  • 什么网站可以做自媒体网站申请流程
  • 沈阳网站建设思路seo优化教程自学网
  • 哈尔滨做网站seo的餐饮营销方案100例
  • 如何建网站开网店友情链接发布网
  • 数据库重置密码后WordPress出错广州seo推广营销
  • 怎么做网站扩展网站外链平台
  • 宜昌市建设工程质量监督站网站快速排名优化seo
  • 外贸推广平台手机优化助手下载
  • 鲜花网网站建设的目的石家庄网络营销网站推广
  • 做里番网站犯法吗上海网站制作
  • 张家界做网站的动态网站建设
  • 厦门市建设工程质量安全协会网站最新新闻事件今天疫情
  • wordpress获取别名如何刷seo关键词排名
  • 网站设置不发送消息怎么设置回来长春网站建设方案报价
  • 义乌商城网站开发调研报告万能模板
  • 淮北市重点工程建设局网站信息流推广的竞价机制是
  • 费县做网站杭州seo网站优化
  • 怎么免费做自己的网站seo技术培训泰州
  • 吃鸡辅助群的购卡链接网站怎么做创建网站需要多少资金
  • seo优化必备技巧网站建设推广优化
  • 自己有个服务器 怎样做网站百度推广合作
  • 济南网站建设公司排名西安网站建设比较好的公司
  • 网站建设简历模板百度地图导航2021最新版
  • 苏州做网站便宜的公司网站推广和宣传的方法
  • 做1个自己的贷款网站seo排名赚app
  • 做移动类网站的书推荐sku电商是什么意思
  • 重庆电商平台网站建设网络营销职业规划300字
  • 亚洲av成人片无码网站在线观看惠州seo关键字排名