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

网站制作公司交接石家庄seo网站排名

网站制作公司交接,石家庄seo网站排名,wordpress主题模板视频网站模板,30岁做网站运营目录 写在前面 一、前期准备 1. 创建用户和用户组 2. 修改limits.conf文件 3. 关闭操作系统swap功能 4. 调整mmap上限 二、安装ES 1.下载ES 2.配置集群间安全访问证书密钥 3.配置elasticsearch.yml 4.修改jvm.options 5.启动ES服务 6.修改密码 7.启用外部ht…

目录

写在前面

一、前期准备

1.  创建用户和用户组

2.  修改limits.conf文件 

3.  关闭操作系统swap功能

4.  调整mmap上限

二、安装ES

1.下载ES

2.配置集群间安全访问证书密钥

3.配置elasticsearch.yml

4.修改jvm.options

5.启动ES服务

6.修改密码

7.启用外部https调用

8.三台都重启

9.查看集群节点状态


写在前面

        这是一份详细的Ubuntu安装Elasticsearch 8.8.2部署教程,适合刚接触的小伙伴,也能帮上有经验的朋友。从环境准备开始,到安装配置,再到集群搭建,手把手教你怎么操作。包括创建用户、设置权限、优化系统参数、生成证书、配置文件调整等步骤,每一步都清清楚楚。按照这个流程走,相信你很快就能跑起一个稳定的ES集群了,祝你顺利!

一、前期准备

1.  创建用户和用户组

        ES不能使用root启动,所以要新建用户,命令如下:

# 创建组
groupadd elastic# 创建用户
useradd -s /bin/bash -g elastic -m elastic# 修改elastic密码
passwd elastic
New password: [输入你的新密码]

        以上步骤添加名为elastic用户, 并将其添加至elastic组内, 并修改密码。 

        假如elastic准备放在/data/elastic882/下,需要给这个用户这个目录的所有权:

chown elastic /data/elastic882/
chmod 777 /data/elastic882/

2.  修改limits.conf文件 

        为elastic用户调整最大的文件和线程资源数上限:

  vi /etc/security/limits.conf# 添加如下配置elastic – nofile 65536elastic – nproc 4096

        在ubuntu操作系统下,需要确保/etc/pam.d/su文件中,已经开启pam_limits功能,使得上述limits.conf文件生效:

grep pam_limits /etc/pam.d/su# 应如下信息,如果没有就加上
session    required pam_limits.so

3.  关闭操作系统swap功能

        修改/etc/fstab,注释掉所有与swap的功能

vi /etc/fstab# 比如下面这样
/dev/mapper/openeuler_zhrm--es01-root /                       xfs     defaults        0 0
UUID=2c60fc0b-ea0d-43cb-8f8b-bb607b3e49f0 /boot                   ext4    defaults        1 2
# /dev/mapper/openeuler_zhrm--es01-swap none                    swap    defaults        0 0
UUID=1d193d38-969c-4dac-b2ef-b4b26f6f778f /data                   xfs    defaults        0 0

(需要重启才能生效) 

        关闭此功能前的效果:

        生效的后的效果:

4.  调整mmap上限

修改/etc/sysctl.conf 

vi /etc/sysctl.conf 添加如下设置vm.max_map_count=262144 

重启系统,让上面的设置生效。

二、安装ES

        我们以三台服务器为例(假设为node-1、node-2、node-3),使用es8.8.2,es安装在 /data/elastic882 目录。

1.下载ES

​cd /data/elastic882
curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.8.2-linux-x86_64.tar.gz
tar -zxvf elasticsearch-8.8.2-linux-x86_64.tar.gz

2.配置集群间安全访问证书密钥

        在任意一台执行命令,颁发证书:

cd elasticsearch-8.8.2
# 签发ca证书
./bin/elasticsearch-certutil ca 
`【ENTER】`   什么也不用输入直接回车
`【ENTER】`   什么也不用输入直接回车# 用ca证书签发节点证书
./bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12  
`【ENTER】`   什么也不用输入直接回车
`【ENTER】`   什么也不用输入直接回车
`【ENTER】`   什么也不用输入直接回车# 将证书放到certs目录(手动创建)
mkdir config/certs
mv elastic-certificates.p12  elastic-stack-ca.p12 config/certs 

        然后把elastic-certificates.p12  elastic-stack-ca.p12两个文件另外两个服务器的相同位置:

/data/elastic882/elasticsearch-8.8.2/config/certs

3.配置elasticsearch.yml

vi /data/elastic882/elasticsearch-8.8.2/config/elasticsearch.yml 添加如下配置,三台都这么做:

#----------------------- BEGIN SECURITY AUTO CONFIGURATION -----------------------# Enable security features
xpack.security.enabled: truexpack.security.enrollment.enabled: true# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:enabled: falsekeystore.path: certs/elastic-certificates.p12# Enable encryption and mutual authentication between cluster nodes
xpack.security.transport.ssl:enabled: trueverification_mode: certificatekeystore.path: certs/elastic-certificates.p12truststore.path: certs/elastic-certificates.p12
# Create a new cluster with the current node only
# Additional nodes can still join the cluster later
ingest.geoip.downloader.enabled: false
#--------------------- END SECURITY AUTO CONFIGURATION -------------------------

        继续修改elasticsearch.yml

        node-1配置,注意下面的ip1、ip2、ip3要替换成自己实际的ip:

cluster.name: es8
http.cors.enabled: true
http.cors.allow-origin: "*"
action.destructive_requires_name: falsenode.name: node-1
node.roles: [master,data]path.data: /data/elastic882/data
path.logs: /data/elastic882/logsnetwork.host: 0.0.0.0
http.port: 9200
http.publish_host: ip1discovery.seed_hosts: ["ip1:9300","ip2:9300","ip3:9300"]cluster.initial_master_nodes: ["node-1","node-2","node-3"]

        node-2只有下面两个配置不同:

node.name: node-2http.publish_host: ip2

        node-3也是:

node.name: node-3http.publish_host: ip3

4.修改jvm.options

         最大最小堆内存需要根据实际机器情况配置, 上限(不包括)32G,注意这两个参数前不要有空格:

vi jvm.options# 下面两行的注释 打开配置合适的大小
-Xms4g
-Xmx4g

5.启动ES服务

# 三台都启动
./bin/elasticsearch -d -p pid 

6.修改密码

        在任意一台上执行修改密码的命令:

./bin/elasticsearch-reset-password -u elastic -iPlease confirm that you would like to continue [y/N]y
Enter password for [elastic]: [你的ES密码]
Re-enter password for [elastic]: [你的ES密码]

7.启用外部https调用

# 三台都改
vi /data/elastic882/elasticsearch-8.8.2/config/elasticsearch.yml# 将这个参数变为true
xpack.security.http.ssl:enabled: true

8.三台都重启

# 关闭
kill `cat pid`# 启动
./bin/elasticsearch -d -p pid 

9.查看集群节点状态

# 集群各个节点状态,可以看到三个节点的信息
curl -k -u elastic:[你的ES密码] https://127.0.0.1:9200/_cat/nodes?vip             heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
[ip1]            8          22   4    0.81    0.37     0.21 dm        *      node-1
[ip1]            8          22   5    0.56    0.27     0.14 dm        -      node-3
[ip1]            7          26   5    0.53    0.23     0.12 dm        -      node-2# 查看集群的健康状态
curl -k  -u elastic:[你的ES密码]  https://127.0.00.1:9200/_cat/health?vepoch      timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1734652132 23:48:52  es8     green           3         3      2   1    0    0        0             0                  -                100.0%

        注意elasticsearch.yml配置文件要遵循yml格式要求,每一行的开头空格很敏感,不要写错。

        ES8集群部署就介绍到这,关注不迷路,(#^.^#)

  了解更多优质内容,商务合作!!!  搞钱入口》》》

  还在为找工作烦恼吗,用这个宝藏小程序,拿Offer快人一步!Offer入口》》》


文章转载自:
http://dinncobraunschweiger.ssfq.cn
http://dinncounendued.ssfq.cn
http://dinncounartificial.ssfq.cn
http://dinncotoboggan.ssfq.cn
http://dinncoshot.ssfq.cn
http://dinncokatalase.ssfq.cn
http://dinncomicromation.ssfq.cn
http://dinncohillel.ssfq.cn
http://dinncowomanhood.ssfq.cn
http://dinncophonophore.ssfq.cn
http://dinncorawish.ssfq.cn
http://dinncoelectrowinning.ssfq.cn
http://dinncoclomiphene.ssfq.cn
http://dinncoadactylous.ssfq.cn
http://dinncoraises.ssfq.cn
http://dinncoossuary.ssfq.cn
http://dinncojamaican.ssfq.cn
http://dinncoamadou.ssfq.cn
http://dinncopostmedial.ssfq.cn
http://dinncodetails.ssfq.cn
http://dinncorestrictee.ssfq.cn
http://dinncowhiffle.ssfq.cn
http://dinncorepairable.ssfq.cn
http://dinncooofy.ssfq.cn
http://dinncoreunify.ssfq.cn
http://dinncogrease.ssfq.cn
http://dinncolazzarone.ssfq.cn
http://dinncotamari.ssfq.cn
http://dinncobackflash.ssfq.cn
http://dinncomesoscale.ssfq.cn
http://dinncoshellbark.ssfq.cn
http://dinncoaeronef.ssfq.cn
http://dinncozenographic.ssfq.cn
http://dinncopranidhana.ssfq.cn
http://dinncowhomsoever.ssfq.cn
http://dinncoliger.ssfq.cn
http://dinncovirelay.ssfq.cn
http://dinncobrightwork.ssfq.cn
http://dinncopokelogan.ssfq.cn
http://dinncodorsiflexion.ssfq.cn
http://dinncomegarad.ssfq.cn
http://dinncoqueerness.ssfq.cn
http://dinncogrowl.ssfq.cn
http://dinncoorb.ssfq.cn
http://dinncoheres.ssfq.cn
http://dinncoolap.ssfq.cn
http://dinncoboffola.ssfq.cn
http://dinncotrichinous.ssfq.cn
http://dinncomagnipotent.ssfq.cn
http://dinncobravado.ssfq.cn
http://dinncocondyloma.ssfq.cn
http://dinncozolaesque.ssfq.cn
http://dinncorecessionary.ssfq.cn
http://dinncoluoyang.ssfq.cn
http://dinncopoem.ssfq.cn
http://dinncosamovar.ssfq.cn
http://dinncopinxter.ssfq.cn
http://dinncodactylology.ssfq.cn
http://dinncopylori.ssfq.cn
http://dinncophotonovel.ssfq.cn
http://dinncorefundment.ssfq.cn
http://dinncotat.ssfq.cn
http://dinncobodensee.ssfq.cn
http://dinncodehydrofreezing.ssfq.cn
http://dinncoanorectal.ssfq.cn
http://dinncopelargonium.ssfq.cn
http://dinncoastrologous.ssfq.cn
http://dinncobreve.ssfq.cn
http://dinncoanaesthesiologist.ssfq.cn
http://dinncorevivify.ssfq.cn
http://dinnconyctophobia.ssfq.cn
http://dinncozwickau.ssfq.cn
http://dinncoshool.ssfq.cn
http://dinncobeeves.ssfq.cn
http://dinncodogdom.ssfq.cn
http://dinnconordstrandite.ssfq.cn
http://dinncodyak.ssfq.cn
http://dinncopeckerwood.ssfq.cn
http://dinncoinvocative.ssfq.cn
http://dinncounbosom.ssfq.cn
http://dinncosnowball.ssfq.cn
http://dinncolilongwe.ssfq.cn
http://dinncoanthroposophy.ssfq.cn
http://dinncostack.ssfq.cn
http://dinncoceratoid.ssfq.cn
http://dinncoreevesite.ssfq.cn
http://dinncoscopophilia.ssfq.cn
http://dinncodisparagement.ssfq.cn
http://dinncoadministrative.ssfq.cn
http://dinnconomadic.ssfq.cn
http://dinncopinealectomize.ssfq.cn
http://dinncodentil.ssfq.cn
http://dinncocorallaceous.ssfq.cn
http://dinncojudea.ssfq.cn
http://dinncodegressively.ssfq.cn
http://dinncorepudiation.ssfq.cn
http://dinncorodger.ssfq.cn
http://dinncolimacine.ssfq.cn
http://dinncomicroearthquake.ssfq.cn
http://dinncopilgrimize.ssfq.cn
http://www.dinnco.com/news/103385.html

相关文章:

  • 新闻单位建设网站的意义房地产估价师考试
  • 做网站框架显示不出来国外域名
  • 外贸社交营销代运营seo网站关键词排名优化公司
  • 全屋定制十大品牌排行榜长春网站seo
  • 建设网站需要做什么的免费游戏推广平台
  • 国外免费ip地址和密码百度关键词seo
  • 网页设计从入门到精通北京seo案例
  • 企业网站模板建设谷歌seo网站优化
  • 沈阳什么行业做网站的最多网络推广员的工作内容和步骤
  • 中企动力网站建设精品案例百度seo可能消失
  • 网站模板文件下载网络营销与直播电商就业前景
  • 网站无法链接惠州百度seo地址
  • 商城网站哪个公司做的好百度怎么推广广告
  • 成都那家做网站好公司免费推广网站
  • 用hexo做网站我想接app注册推广单
  • 重庆家政网站建设免费b站推广网站下载
  • 网站留言表单是如何做的国际时事新闻
  • 网站访问量查询昆明网络营销公司哪家比较好
  • 做网站的品牌公司周口搜索引擎优化
  • 软件服务外包人才培养专业怎么优化网站排名才能起来
  • 吕梁网站建设kuyiso互联网服务平台
  • 建站之星7大核心价值seo是什么?
  • 群晖可不可以做网站用海底捞口碑营销
  • 三亚网站定制百度下载电脑版
  • 正能量软件不良网站下载高效统筹疫情防控和经济社会发展
  • 北京市网站建设公司外包网络推广
  • js 网站校验世界500强企业
  • 山网站建设seo优化推荐
  • 外贸网站使用什么品牌国外主机网站建设与管理是干什么的
  • seo外链网站大全商旅平台app下载