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

网站开发就业方向wordpress 注释模版

网站开发就业方向,wordpress 注释模版,网站备案视频,温州微网站开发部署Elasticsearch集群 这里介绍使用的是Elasticsearch 7.6.1的版本#xff0c;配置两台服务器#xff0c;一台部署主节点#xff0c;一台部署两个从节点。 下载地址#xff1a;https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.2-linux-x86_64… 部署Elasticsearch集群 这里介绍使用的是Elasticsearch 7.6.1的版本配置两台服务器一台部署主节点一台部署两个从节点。 下载地址https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.2-linux-x86_64.tar.gz 如果想下载安装其他版本更改后面的版本号即可。 第一步liunx系统安装环境 1.需要安装JDK8 或者 JDK11.es需要jdk环境进行启动。 2.需要安装nginx两台服务器没有外网的情况下需要内网互联 3.服务器主节点的磁盘建议大一点es也是非常消耗磁盘空间的 4.两台服务都需要同样的配置 第二步将下载的ES的安装包放置服务器上 1.两台服务器都需要以下配置多少个节点就配置多少个ES 解压压缩包tar -xvf  elasticsearch-7.6.1-linux-x86_64.tar.gz 主节点 从节点每个从节点都放置了一个压缩包并进行解压 2.开通端口号9200 9201 9202,9300 9301 9302给ES使用。 第三步创建ES启动账号ES不允许root账号启动  第一步liunx创建新用户adduser  账号然后给创建的用户加密码passwd 密码输入两次密码。 第二步切换刚才创建的用户su 账号然后启动elasticsearch。如果显示Permission denied权限不足则继续进行第三步。 第三步给新用户赋权限因为这个用户本身就没有权限肯定自己不能给自己付权限。所以要用root用户登录并赋予权限chown -R 账号/你的elasticsearch安装目录。 第四步启动ES 在ES的bin目录上一级执行./bin/elasticsearch  进行执行。如果有报错显示权限不足。直接执行以下命令 启动命令 执行前先切换为创建的ES账户  su 账号 ./bin/elasticsearch  后台执行nohup ./bin/elasticsearch 查看执行ps -ef|grep elasticsearch 给权限chown -R elastic /你的elasticsearch安装目录 sudo chmod 777 /opt/ES/elasticsearch-7.6.1/config/elasticsearch.keystore sudo chmod 777 /opt/ES/elasticsearch-7.6.1/config/jvm.options 验证es是否启动成功curl http://192.168.1.2:9200  如果返回以下内容则说明成功 第五步集群配置  以上验证了每个ES是否正常配置集群需要更改每个ES的config目录下的 yml文件 主节点配置 # Elasticsearch Configuration # # NOTE: Elasticsearch comes with reasonable defaults for most settings. # Before you set out to tweak and tune the configuration, make sure you # understand what are you trying to accomplish and the consequences. # # The primary way of configuring a node is via this file. This template lists # the most important settings you may want to configure for a production cluster. # # Please consult the documentation for further information on configuration options: # https://www.elastic.co/guide/en/elasticsearch/reference/index.html # # ---------------------------------- Cluster ----------------------------------- # # Use a descriptive name for your cluster: #集群名称 cluster.name: es-cluster # # ------------------------------------ Node ------------------------------------ # # Use a descriptive name for the node: #节点名称 node.name: node-1 #作为数据节点 node.data: true# 是否可以成为master节点node.master: true # # 网络绑定,绑定 0.0.0.0,代表支持外网访问 network.host: 0.0.0.0# 设置对外服务的http端口默认为9200 http.port: 9200# 设置节点间交互的tcp端口,默认是9300---------必须不一致-------------transport.tcp.port: 9300 #当前服务器ip network.publish_host: 172.29.1.123 #集群ip discovery.zen.ping.unicast.hosts: [172.29.1.123:9300, 172.29.1.124:9301,172.29.1.124:9302]#必须依据实际设置的集群名称配置 cluster.initial_master_nodes: [node-1,node-2,node-3]#允许跨域访问 http.cors.enabled: true http.cors.allow-origin: * cluster.routing.allocation.disk.threshold_enabled: false #更改缓冲区大小 http.max_content_length: 800mb从节点第一个配置 # Elasticsearch Configuration # # NOTE: Elasticsearch comes with reasonable defaults for most settings. # Before you set out to tweak and tune the configuration, make sure you # understand what are you trying to accomplish and the consequences. # # The primary way of configuring a node is via this file. This template lists # the most important settings you may want to configure for a production cluster. # # Please consult the documentation for further information on configuration options: # https://www.elastic.co/guide/en/elasticsearch/reference/index.html # # ---------------------------------- Cluster ----------------------------------- # # Use a descriptive name for your cluster: #集群名称 cluster.name: es-cluster # # ------------------------------------ Node ------------------------------------ # # Use a descriptive name for the node: #节点名称 node.name: node-2 #作为数据节点 node.data: false# 是否可以成为master节点node.master: false# # 网络绑定,绑定 0.0.0.0,代表支持外网访问 network.host: 0.0.0.0 当前服务器ip network.publish_host: 172.29.1.124 # 设置对外服务的http端口默认为9200 http.port: 9201# 设置节点间交互的tcp端口,默认是9300---------必须不一致-------------transport.tcp.port: 9301#集群ip discovery.zen.ping.unicast.hosts: [172.29.1.123:9300, 172.29.1.124:9301,172.29.1.124:9302]#必须依据实际设置的集群名称配置 cluster.initial_master_nodes: [node-1,node-2,node-3]#允许跨域访问 http.cors.enabled: true http.cors.allow-origin: * cluster.routing.allocation.disk.threshold_enabled: false 从节点第二个配置 # Elasticsearch Configuration # # NOTE: Elasticsearch comes with reasonable defaults for most settings. # Before you set out to tweak and tune the configuration, make sure you # understand what are you trying to accomplish and the consequences. # # The primary way of configuring a node is via this file. This template lists # the most important settings you may want to configure for a production cluster. # # Please consult the documentation for further information on configuration options: # https://www.elastic.co/guide/en/elasticsearch/reference/index.html # # ---------------------------------- Cluster ----------------------------------- # # Use a descriptive name for your cluster: #集群名称 cluster.name: es-cluster # # ------------------------------------ Node ------------------------------------ # # Use a descriptive name for the node: #节点名称 node.name: node-3 #作为数据节点 node.data: false# 是否可以成为master节点 node.master: false# # 网络绑定,绑定 0.0.0.0,代表支持外网访问 network.host: 0.0.0.0# 设置对外服务的http端口默认为9200 http.port: 9202# 设置节点间交互的tcp端口,默认是9300---------必须不一致-------------transport.tcp.port: 9302 #当前服务器ip network.publish_host: 172.29.1.124 #集群ip discovery.zen.ping.unicast.hosts: [172.29.1.123:9300, 172.29.1.124:9301,172.29.1.124:9302]#必须依据实际设置的集群名称配置 cluster.initial_master_nodes: [node-1,node-2,node-3]#允许跨域访问 http.cors.enabled: true http.cors.allow-origin: * cluster.routing.allocation.disk.threshold_enabled: false 以上每个ES的配置完毕并重新启动即可 验证是否成功curl http://172.29.1.123:9200/_cat/nodes 出现以下内容即表明集群创建成功 第六步配置kibana 必选与es的版本一致每个ES都需要配置一个kibana 下载后并解压然后配置  kibana.yml的配置即可 配置kibana.yml #端口号 server.port: 5602 #当前ip server.host: 172.29.1.124 #指定对应的es的端口号 elasticsearch.hosts: [http://172.29.1.124:9201]# 通信的请求超时时间 elasticsearch.requestTimeout: 60000# 指定Kibana界面的语言为中文 i18n.locale: zh-CN启动命令nohup  ./bin/kibana --allow-root 测试 Reindex(数据迁移) 可以直接使用ES的 reindexAPI进行数据迁移 准备工作需要在新ES的主节点的yml配置数据源白名单 如下 #迁移数据的密度源。数据源的ip和es端口号 reindex.remote.whitelist: [172.23.1.123:9200] 配置完去新es的kibana进行调用api POST _reindex?wait_for_completionfalse {source: {remote: {host: http://172.23.1.123:9200},size: 300, index: yq_data_202402,query: {range: {createTime: {gte: 1708876800000,lte: 1709222399000}}}},dest: {index: yq_data_202402} } size 参数指定了每次从远程主机获取的文档数量 query 参数用于指定查询条件。 host 参数指定数据源的ip和端口号 index 指数据源的索引库 dest.index 指新es的索引库 执行完后会返回一个id。可根据id查看进度 #查看迁移状态   GET _tasks/ncbwsVuKSsCGmmJKqJsVNw:5860330?pretty 等待false变成true即可
http://www.pierceye.com/news/513646/

相关文章:

  • 餐饮网站建设优化建站wordpress copyright
  • 腾讯建站官网设计网页步骤
  • 网站建设三方合同范本wordpress数字链接出现404
  • 下载用的网站怎么做网站模板怎么使用教程
  • 没有网站 可以做百度口碑吗展馆的科普网站建设
  • 河北网站备案查询系统商城网站seo
  • 网站申请页面网站空间不够用怎么办
  • 网站开发最合适的搭配螺栓球网架
  • 广东网站建设排名凡科建站下载
  • 建设厅网站预算员报名时间网站建设策划书的编制
  • 厦门手机网站建设公司哪家好鲜花网站源码
  • 北京家居网站建设如何制作软件手机软件
  • 北京网站建设策划解决方案长沙建设工程造价网站
  • 北京网站设计公司价格阿里云wordpress插件
  • 网站建设自助建站企业萧山人才网手机版
  • 长沙建站挺找有为太极wordpress 需要zend
  • 通信管理局 网站备案天猫网站设计教程
  • 营销型网站制作成都打造品牌的三点策略
  • 做查工资的网站如何下载网页在线视频
  • 北沙滩网站建设公司主页怎么填
  • 手机asp网站网站设计方案
  • 长春市网站开发广东一站式网站建设推荐
  • 企业网站推广策略商会联盟网站建设方案
  • 清丰网站建设百度推广建设网站是不是合发
  • 邢台12345网站哪个公司的装饰设计公司
  • 嘉兴网嘉兴网站建设手机网站管理软件
  • 网站主色调简介怎么说本地常州微信网站建设
  • 电子商务网站数据库建设怎样推广一个网站
  • illustrator 学习网站wordpress外链产品
  • 电脑端网站一般做多宽最好网页游戏制作成本