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

如何做网站反链招聘门户

如何做网站反链,招聘门户,英国电商网站,网站改版策划前言 业务需要将 Elasticsearch 快照到 AWS S3#xff0c;再将快照拷贝到 Windows 系统#xff0c;并恢复到 Elasticsearch。如下图所示#xff1a; 环境 Elasticsearch 7.10.1 Windows Server 2019 Ubuntu 20.04 #xff08;ES 宿主#xff09; ES 集群1 安装 S3 插…前言 业务需要将 Elasticsearch 快照到 AWS S3再将快照拷贝到 Windows 系统并恢复到 Elasticsearch。如下图所示 环境 Elasticsearch 7.10.1 Windows Server 2019 Ubuntu 20.04 ES 宿主 ES 集群1 安装 S3 插件 官方文档 https://www.elastic.co/guide/...应在 ES 集群的所有节点上安装插件下载 S3 插件和 SHA hash并上传到 ES 服务器 查看并校验 # ll -ah total 4.6M drwxr-xr-x 2 qhy qhy 4.0K Mar 9 01:55 ./ drwxr-xr-x 7 qhy qhy 4.0K Mar 9 01:50 ../ -rw-rw-r-- 1 qhy qhy 4.6M Mar 9 01:55 repository-s3-7.10.1.zip -rw-rw-r-- 1 qhy qhy 154 Mar 9 01:55 repository-s3-7.10.1.zip.sha512# shasum -a 512 -c repository-s3-7.10.1.zip.sha512 repository-s3-7.10.1.zip: OK 安装 # /usr/share/elasticsearch/bin/elasticsearch-plugin install file:///home/qhy/es_down/repository-s3-7.10.1.zip - Installing file:///home/qhy/es_down/repository-s3-7.10.1.zip - Downloading file:///home/qhy/es_down/repository-s3-7.10.1.zip [] 100%   WARNING: plugin requires additional permissions java.lang.RuntimePermission accessDeclaredMembers java.lang.RuntimePermission getClassLoader java.lang.reflect.ReflectPermission suppressAccessChecks java.net.SocketPermission * connect,resolve java.util.PropertyPermission es.allow_insecure_settings read,write See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html for descriptions of what these permissions allow and the associated risks.Continue with installation? [y/N]y - Installed repository-s3 重启 ES 服务 ES 集群1 添加 KEY 官方文档 https://www.elastic.co/guide/...应在 ES 集群的所有节点上添加 key 查看有哪些 key /usr/share/elasticsearch/bin/elasticsearch-keystore list添加 access_key /usr/share/elasticsearch/bin/elasticsearch-keystore add s3.client.default.access_key 添加 secret_key /usr/share/elasticsearch/bin/elasticsearch-keystore add s3.client.default.secret_key 重载配置 POST _nodes/reload_secure_settings 创建 S3 快照仓库 官方文档 https://www.elastic.co/guide/...注意中国区不支持 region用 endpoint 替代 PUT _snapshot/my_s3_repository {type: s3,settings: {endpoint: s3.cn-northwest-1.amazonaws.com.cn,bucket: zt-hadoop-cn-northwest-1,base_path: es_snapshot, max_snapshot_bytes_per_sec: 200mb, # 调整快照创建的速度默认 40mbmax_restore_bytes_per_sec: 200mb # 调整快照恢复的速度默认无限制} } 查看所有注册的快照仓库 GET _snapshot/_all 删除快照仓库 DELETE _snapshot/my_s3_repository 调整集群恢复分片速度和并发数 PUT _cluster/settings {transient: {indices.recovery.max_bytes_per_sec: 200mb, # 默认 40mbcluster.routing.allocation.node_concurrent_recoveries: 5 # 默认 2} } 查看集群配置包括默认配置 GET _cluster/settings?flat_settingsinclude_defaults 创建快照 官方文档 https://www.elastic.co/guide/... PUT /_snapshot/my_s3_repository/snapshot_zt {indices: zt_product_doc_index_20210223_3,ignore_unavailable: true,include_global_state: false } 查看一个my_s3_repository仓库下的所有快照 GET _snapshot/my_s3_repository/_all 查看 snapshot_zt 快照的概要状态 GET _snapshot/my_s3_repository/snapshot_zt 查看 snapshot_zt 快照的详细状态 GET _snapshot/my_s3_repository/snapshot_zt/_status 删除快照 DELETE _snapshot/my_s3_repository/snapshot_zt 从 S3 恢复快照 官方文档 https://www.elastic.co/guide/... POST /_snapshot/my_s3_repository/snapshot_zt/_restore {indices: zt_product_doc_index_20210223_3,index_settings: { index.number_of_replicas: 0},rename_pattern: zt_product_doc_index_20210223_3,rename_replacement: zt_product_doc_index_20210223_3_restore } 增加副本 PUT zt_product_doc_index_20210223_3_restore/_settings {index.number_of_replicas : 1 } 从 Windows 共享目录恢复快照 已将 S3 上的文件拷贝到 Windows 的共享目录并挂载到 ES 集群2 服务器的 /mnt/winshare 目录 # tree -d /mnt/winshare/ /mnt/winshare/ └── es_snapshot└── indices└── kM6SVcCrTUGjP-634aDUYg├── 0├── 1└── 2 Linux 挂载 Windows 共享目录参见 Ubuntu 20.04 读写 Windows 10 共享目录 在 elasticsearch.yml 文件中添加如下配置并重启 ES 服务 path.repo: - /mnt/winshare 创建 Windows 系统的快照仓库 PUT /_snapshot/my_backup { type: fs, settings: {location: /mnt/winshare/es_snapshot } } 官方文档 POST /_snapshot/my_backup/snapshot_zt/_restore { indices: zt_product_doc_index_20210223_3, index_settings: {index.number_of_replicas: 0 }, rename_pattern: zt_product_doc_index_20210223_3, rename_replacement: zt_product_doc_index_20210223_3_smb } 增加副本 PUT zt_product_doc_index_20210223_3_smb/_settings { index.number_of_replicas : 1 } 本文出自  qbit snap
http://www.pierceye.com/news/420561/

相关文章:

  • 手机网站 程序网站备案要关多久
  • 网站需要具备条件在线用代码做网站
  • 代码下载网站河北恒山建设集团网站
  • 网站设计应遵循的原则做企业网站有哪些好处
  • 网站不用域名解绑商务网站建设的一般流程是什么?
  • 企业网站的运营如何做秦皇岛网站制作与网站建设
  • 潍坊 营销型网站建设室内设计和装修设计
  • 滕州市东方建设工程事务有限公司网站房房网
  • php网站漂浮广告代码百度一下打开网页
  • 华为公司网站建设方案模板自己做网站的费用
  • 网站设计命名规范广州短视频内容营销平台
  • 天津专门做网站的公司成都市城乡建设局网站
  • 品牌网站升级wordpress 4.9中文
  • 网站搭建软件广告标识标牌制作公司
  • 做造价在哪个网站查价格微信小程序是什么语言开发的
  • 网站建设平台接单做电子商务平台网站需要多少钱
  • 甘肃网站seo技术厂家企业简介内容
  • 视觉中国设计网站做音乐网站
  • 金坛区建设工程质量监督网站西宁百姓网免费发布信息
  • 运维 网站开发网站如何引入流量
  • 网站建设泉州效率网络西安网站设计公司哪家好
  • 青羊建站报价网上能注册公司吗怎么注册
  • 免费网站虚拟主机整站seo技术搜索引擎优化
  • 青岛网站建设订做油画风网站
  • 网站备案名称的影响吗六安哪里有做推广网站
  • 网站建设策划书网站发布与推广长沙公司网站费用
  • 设计网页英语口碑优化seo
  • 试客那个网站做的好北京做软件开发的公司
  • 网站多套系统如何调用网页大图素材
  • 沧州网站建设方案咨询wordpress需要 伪静态