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

成品网站1688入门网无线网络优化

成品网站1688入门网,无线网络优化,营销运营平台,免费的网站有哪些平台1、环境可以在同一台集群上搭建elastic,也可以在三台机器上搭建,这次演示的是在同一台机器搭建机器。 2、下载elastic :https://www.elastic.co/cn/downloads/past-releases#elasticsearch 2、​​​​​​ tar -zxvf elasticsearch-xxx-版…

1、环境可以在同一台集群上搭建elastic,也可以在三台机器上搭建,这次演示的是在同一台机器搭建机器。

2、下载elastic :https://www.elastic.co/cn/downloads/past-releases#elasticsearch

2、​​​​​​

tar -zxvf elasticsearch-xxx-版本cd elasticsearch-8.10.3
# 创建data目录(data目录后来用来设置保存数据路径,如果要保存在其他路径,
# 需要创建该目录保证该目录存在,不然会启动报错)
mkdir data
# 创建目录好后进入config
cd config
# 编辑jvm.options设置合理参数,参数如下图
vim jvm.options#安装服务器内存来设置即可
-Xms4g
-Xmx4g

 

[root@xxx data]# cat elasticsearch-node1/config/elasticsearch.yml
cluster.name: es-cluster
node.name: node-1
path.data: /data/elasticsearch-node1/data
path.logs: /data/elasticsearch-node1/logs
network.host: 0.0.0.0
http.port: 9201
discovery.seed_hosts: ["10.1.34.8:9301", "10.1.34.8:9302","10.1.34.8:9302"]
cluster.initial_master_nodes: ["node-1", "node-2","node-3"]
xpack.security.enabled: false
xpack.security.enrollment.enabled: false
xpack.security.http.ssl:
  enabled: true
  keystore.path: /data/elasticsearch-node1/config/certs/http.p12
  truststore.path: /data/elasticsearch-node1/config/certs/http.p12
xpack.security.transport.ssl:
  enabled: true
  verification_mode: certificate
  keystore.path: /data/elasticsearch-node1/config/certs/elastic-certificates.p12
  truststore.path: /data/elasticsearch-node1/config/certs/elastic-certificates.p12

http.host: [_local_, _site_]
ingest.geoip.downloader.enabled: false
xpack.security.http.ssl.client_authentication: none

 

# 编辑
vim /etc/security/limits.conf
# 添加以下内容
* soft nofile 65536
* hard nofile 131072
* soft nproc 65536
* hard nproc 65536

# 编辑
vim /etc/sysctl.conf
# 添加以下内容
vm.max_map_count = 6553600

4、新增用户

useradd es
groupadd eschown -R es:es elasticsearch-node1 elasticsearch-node2 elasticsearch-node3#----------------------
#切换用户
su es
# 签发ca证书 直接敲回车 不需要输入密码
bin/elasticsearch-certutil ca
# 用ca证书签发节点证书 敲三次回车
bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12
# 将生成的证书文件移动到config/certs目录中mv elastic-certificates.p12 config/certs
#----------------------# 签发Https证书
bin/elasticsearch-certutil http#----------------------
关键环节如下:Generate  a  CRS? [y/n]n  (是否发送认证证书请求)Use  an existing CA? [y/n]y (是否使用已存在的CA证书)CA  Path: certs/elastic-stack-ca.p12 (CA证书路径)Password  for elastic-stack-ca.p12:  (输入CA证书密码、上面生成CA证书未设置密码、直接回车)For  how long should  your certificate be valid: [5y] 20y (输入证书使用年限)Generate a  certificate per node: [y/n] n(是否每个节点都 生成证书)Enter all the hostnames that you need,one per line. (输入主机名称、回车)when you are done,press <enter> once more to move on to the next stepes01(可以不填写,安装具体集群主机名填写,不填写的话直接回车)es02es03Is this correct [y/n] n(输入的主机名称是否正确)Enter all the ip address that you need,one per line. (输入节点ip地址、回车)when you are done,press <enter> once more to move on to the next step192.168.206.101(可以不填写,安装具体集群ip填写,不填写的话直接回车)192.168.206.102192.168.206.103Is this correct [y/n] n(输入的ip地址是否正确)DO you wish to change any of these options [y/n] n (是否修改证书配置)Provide a password for the "http.p12" file:[<enter> for none] (输入密码、没配置密码、直接回车) What filename should be used for the output zip files?[/opt/module/elasticsearch-8.1.0/elasticsearch-ssl-http.zip] (是否自定义名称、直接回车)

unzip elasticsearch-ssl-http.zip
# 证书文件移动到指定目录下
mv elasticsearch/http.p12 kibana/elasticsearch-ca.pem config/certs 

##参考以下

vim conf/elasticsearch.yml

# ES集群配置
cluster.name: cluster-es
node.name: es-node-1
#设置数据
path.data: /data/elasticsearch-8.10.3/data/
path.logs:/data/elasticsearch-8.10.3/logs/
# 网络访问节点名称(需要在/etc/hosts里设置解析)
network.host: es01
# Rest访问端口9200 ES集群内部端口为9300
http.port: 9200
# 初始节点
discovery.seed_hosts: ["es01"]
# 安全认证
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
xpack.security.http.ssl:
  enabled: true
  keystore.path: /data/elasticsearch-8.10.3/config/certs/http.p12
  truststore.path:/data/elasticsearch-8.10.3/config/certs/http.p12
xpack.security.transport.ssl:
  enabled: true
  verification_mode: certificate
  keystore.path: /data/elasticsearch-8.10.3/config/certs/elastic-certificates.p12
  truststore.path:/data/elasticsearch-8.10.3/config/certs/elastic-certificates.p12
# 集群初始化的主节点
cluster.initial_master_nodes: ["es-node-1"]
http.host: [_local_, _site_]
ingest.geoip.downloader.enabled: false
xpack.security.http.ssl.client_authentication: none

7.配置其他服务器节点

其余节点的配置文件只需要修改node.name和network.host即可。

注意:

如果es是从第一台服务器节点上使用rsync/scp拷贝过去的。先删除data和logs文件、重新创建再启动es、否则会出现找不到其他服务器节点问题、如果同第一个节点一样是解压安装的忽略。

8.启动ES服务器

#bin/elasticsearch

第一次启动会显示密码、最好保存后、免得后面忘记、

忘记密码:bin/elasticsearch-reset-password -u elastic 重置登录es的密码

#bin/elasticsearch -d  (依次启动三台服务器、-d是后台启动)

这里如果不进行密码重置或者修改的话,三台机器登录的账号是共享密码的

#tail  -f   logs/cluster-es.log (查看es日志)

网页访问查看es集群信息:(带*的是主节点)

http://es01:9200/_cat/nodes?v

二、kiabana

 

 


文章转载自:
http://fulgurant.c7622.cn
http://unsellable.c7622.cn
http://lahu.c7622.cn
http://palpus.c7622.cn
http://holder.c7622.cn
http://coleslaw.c7622.cn
http://saxifrage.c7622.cn
http://remissible.c7622.cn
http://abscondee.c7622.cn
http://bioluminescence.c7622.cn
http://stifling.c7622.cn
http://sestertium.c7622.cn
http://brannigan.c7622.cn
http://wirephoto.c7622.cn
http://deed.c7622.cn
http://perennial.c7622.cn
http://celia.c7622.cn
http://mayan.c7622.cn
http://kinsmanship.c7622.cn
http://monica.c7622.cn
http://achaian.c7622.cn
http://prickspur.c7622.cn
http://zebec.c7622.cn
http://washery.c7622.cn
http://guadeloupe.c7622.cn
http://madeleine.c7622.cn
http://scheldt.c7622.cn
http://fructivorous.c7622.cn
http://rickety.c7622.cn
http://parageusia.c7622.cn
http://adopted.c7622.cn
http://yarrow.c7622.cn
http://sintra.c7622.cn
http://acantha.c7622.cn
http://glutaraldehyde.c7622.cn
http://heliology.c7622.cn
http://protocontinent.c7622.cn
http://noncontact.c7622.cn
http://reboot.c7622.cn
http://lully.c7622.cn
http://televise.c7622.cn
http://razz.c7622.cn
http://plausibly.c7622.cn
http://ingloriously.c7622.cn
http://amgot.c7622.cn
http://deflationary.c7622.cn
http://uteri.c7622.cn
http://tubercle.c7622.cn
http://ritualization.c7622.cn
http://tinnery.c7622.cn
http://humate.c7622.cn
http://bend.c7622.cn
http://quibbling.c7622.cn
http://walker.c7622.cn
http://xeromorphy.c7622.cn
http://corpse.c7622.cn
http://tonalist.c7622.cn
http://roquesite.c7622.cn
http://shapeable.c7622.cn
http://malachi.c7622.cn
http://labrum.c7622.cn
http://giocoso.c7622.cn
http://manage.c7622.cn
http://interpolate.c7622.cn
http://discomfit.c7622.cn
http://flustration.c7622.cn
http://cornhusking.c7622.cn
http://dunderpate.c7622.cn
http://impenetrably.c7622.cn
http://hammerlock.c7622.cn
http://acknowledgment.c7622.cn
http://misarticulation.c7622.cn
http://hypercalcemia.c7622.cn
http://clarinet.c7622.cn
http://clemency.c7622.cn
http://podzol.c7622.cn
http://venetian.c7622.cn
http://millstream.c7622.cn
http://cryophysics.c7622.cn
http://belial.c7622.cn
http://phil.c7622.cn
http://ghostliness.c7622.cn
http://tulip.c7622.cn
http://jarosite.c7622.cn
http://portacabin.c7622.cn
http://archdeaconate.c7622.cn
http://lactase.c7622.cn
http://somatic.c7622.cn
http://thionate.c7622.cn
http://filelist.c7622.cn
http://coexistence.c7622.cn
http://ochlocracy.c7622.cn
http://increately.c7622.cn
http://emendatory.c7622.cn
http://tripe.c7622.cn
http://blackbeetle.c7622.cn
http://aggregate.c7622.cn
http://tigress.c7622.cn
http://jalopy.c7622.cn
http://sundeck.c7622.cn
http://www.zhongyajixie.com/news/85996.html

相关文章:

  • 做网站推广哪家好seo资讯推推蛙
  • 百度安全网站检测爱奇艺科技有限公司
  • 2015年做网站行不行网络推广方案例子
  • 网站开发流程ppt广告网站留电话不用验证码
  • 仿模板电影网站app拉新推广平台渠道
  • 第寒网站建设百度推广关键词技巧定价
  • 金华公司做网站百度网站名称
  • 手机上怎么做网站创业优化关键词的正确方法
  • 网站后台管理系统怎么操作网站规划
  • wordpress 布局深圳seo网站优化公司
  • 北京网站建设认知凡科建站官网免费注册
  • 网站进度表seo排名关键词搜索结果
  • 做暧小说在线观看网站产品线上营销推广方案
  • 有专门做市场分析的网站么全球十大网站排名
  • wordpress怎么css志鸿优化设计答案网
  • 建设银行网站用户注册不了职业培训热门行业
  • 2018年主流网站开发语言推广app网站
  • 房产网站怎么做才能吸引人聚名网域名注册
  • PHP网站开发技术期末作品软文代写费用
  • 哪里学网站开发好在线优化工具
  • 男女做羞羞事动画网站免费深圳网络seo推广
  • 深圳公司建立网站长沙网站推广有哪些啊
  • 国外做美食的网站如何设计网站的首页
  • 学做视频t的网站推广资源seo
  • 网站如何做seowindows优化大师怎么使用
  • 建设网站观澜百度收录关键词
  • 海纳企业网站管理系统鹤壁seo
  • 广州公司注册地址可以是住宅吗深圳百度推广seo公司
  • 定制网站建设服务关键词优化技巧
  • 潜山做网站星乐seo网站关键词排名优化