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

江淮网站开发html源码之家

江淮网站开发,html源码之家,什么是网站建设规划书,优化wordpress搜索结果1、准备三台服务器 这里准备三台服务器如下: IP地址主机名节点名192.168.225.65linux1node-1192.168.225.66linux2node-2192.168.225.67linux3node-3 2、准备elasticsearch安装环境 (1)编辑/etc/hosts(三台服务器都执行) vim /etc/hosts 添加如下内…

1、准备三台服务器

这里准备三台服务器如下:

IP地址主机名节点名
192.168.225.65linux1node-1
192.168.225.66linux2node-2
192.168.225.67linux3node-3

2、准备elasticsearch安装环境

(1)编辑/etc/hosts(三台服务器都执行)

vim /etc/hosts
添加如下内容:
192.168.225.65    linux1
192.168.225.66    linux2
192.168.225.67    linux3

在这里插入图片描述
(2)编辑/etc/hostname (三台服务器都执行)

在192.168.225.65上修改
echo 'linux1' > /etc/hostname
在192.168.225.66上修改
echo 'linux2' > /etc/hostname
在192.168.225.67上修改
echo 'linux3' > /etc/hostname

(3)修改系统参数 (三台服务器都执行)

vim /etc/security/limits.conf
修改内容如下:
*  soft nofile  65536
*  hard nofile 131072
*  soft nproc  4096
*  hard nproc  4096 vim /etc/sysctl.conf
修改内容如下:
vm.max_map_count = 262145
保存退出,刷新配置文件
sysctl -p 

(4)上传elasticsearch安装包和创建安装用户(三台服务器都执行)
elasticsearch-7.8.1下载地址

这里是将elasticsearch安装包elasticsearch-7.8.1-linux-x86_64.tar.gz上传到/opt目录下
cd /opt
tar -zxvf elasticsearch-7.8.1-linux-x86_64.tar.gz
mv elasticsearch-7.8.1 elasticsearch7.8
useradd jamysong
chown -R jamysong:jamysong  /opt/elasticsearch7.8

注意:做完以上四步重启下三台服务器

3、安装elasticsearch

(1) 编辑elasticsearch配置文件

vim /opt/elasticsearch7.8/cong/elasticsearch.yaml

node1的配置文件

cluster.name: cluster-jamysong
node.name: node-1
network.host: linux1
node.master: true
node.data: true
http.port: 9200 
http.cors.allow-origin: "*"
http.cors.enabled: true
http.max_content_length: 200mb
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
cluster.routing.allocation.cluster_concurrent_rebalance: 16
cluster.routing.allocation.node_concurrent_recoveries: 16
cluster.routing.allocation.node_initial_primaries_recoveries: 16

node2的配置文件

cluster.name: cluster-jamysong
node.name: node-2
network.host: linux2
node.master: true
node.data: true
http.port: 9200 
http.cors.allow-origin: "*"
http.cors.enabled: true
http.max_content_length: 200mb
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
cluster.routing.allocation.cluster_concurrent_rebalance: 16
cluster.routing.allocation.node_concurrent_recoveries: 16
cluster.routing.allocation.node_initial_primaries_recoveries: 16

node3的配置文件

cluster.name: cluster-jamysong
node.name: node-3
network.host: linux3
node.master: true
node.data: true
http.port: 9200 
http.cors.allow-origin: "*"
http.cors.enabled: true
http.max_content_length: 200mb
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
cluster.routing.allocation.cluster_concurrent_rebalance: 16
cluster.routing.allocation.node_concurrent_recoveries: 16
cluster.routing.allocation.node_initial_primaries_recoveries: 16
(2)启动elasticsearch

现在直接去启动每台服务器上面的elasticsearch

su jamysong
cd /opt/elasticsearch7.8/bin
./elasticsearch

注意:elasticsearch是不允许root用户启动的,这里使用上面创建的安装用户(jamysong)启动
!
在这里插入图片描述

查看启动日志如下,表示启动成功!
在这里插入图片描述

(3)检测elasticsearch集群

这里可以直接访问浏览器来检测一下集群是否搭建成功,这里可以看到node-1是主节点,node-2和node-3是从节点
在这里插入图片描述

http://www.yayakq.cn/news/424985/

相关文章:

  • 太原做网站培训wordpress cms列表页
  • 网站专题页制作wordpress如何搬家
  • 荣耀手机商城官方网站荣耀60pro 网站
  • 建筑公司网站源码 php注册公司要求什么条件
  • 韩国小清新网站模板兰州企业做网站
  • 电子商务网站管理系统完美版ae射频电源成色
  • 网站设计的大公司公司建设网站需要什么条件
  • 南宁市兴宁区建设局网站企业微信自建应用怎么开发
  • 规划设计导航网站php网页设计完整代码
  • 做坑人网站二维码网站开发都需要什么软件
  • 有哪些h5做的网站学做网站去哪学
  • 如何查询网站所有人怎样连接服务器
  • 哈密市建设局网站信誉好的免费网站建设
  • 网站推广网络营销专业网站优化哪家好
  • 长治市建设局网站专业模板建站公司
  • 大连网站建设领超最好360建筑网骗子
  • 重庆建设定额网站如何学习建设网站
  • 万网站长工具互联网营销是什么意思
  • 网站登录界面用什么软件做沈阳网页排名优化方法
  • 怎样建设旅游网站对网站开发流程的了解
  • 资源站 wordpress在网站设计中 网页框架设计
  • 无锡企业网站制作策划wordpress 登陆 443
  • 用腾讯云做会员网站深圳产品型网站建设
  • 现在做网站还赚钱吗电子邮件免费注册
  • 南阳网站seo推广公司灯具网站怎么做
  • 网站制作谁家好成都网站建设哪家专业
  • 注册网站域名的入口是wordpress从前台登录
  • 电子商务网站建设规划范文石家庄规划
  • 济南家居行业网站开发营销网站建设服务
  • 好网站建设因素友情链接方面pr的选择应该优先选择的链接为