第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請及時(shí)綁定郵箱和手機(jī)立即綁定

Linux 安裝 Elasticsearch 并配置

標(biāo)簽:
Java 大數(shù)據(jù)

Linux 安装 Elasticsearch 并配置

下载 Elasticsearch

Elasticsearch 下载地址 www.elastic.co/downloads/elasticsearch

由于国外一般下载比较慢, 可以使用国内镜像:www.newbe.pro/tags/Mirrors/

同样还有其他开源软件可供下载:

  • filebeat:www.newbe.pro/Mirrors/Mirrors-Filebeat/
  • elasticsearch: www.newbe.pro/Mirrors/Mirrors-Elasticsearch/
  • Kibana: www.newbe.pro/Mirrors/Mirrors-Kibana/
  • Logstash: www.newbe.pro/Mirrors/Mirrors-Logstash/
  • RabbitMQ: www.newbe.pro/Mirrors/Mirrors-RabbitMQ/

Elasticsearch Linux 安装

环境 Centos 7

首先需要到[国内镜像网站](https://mirrors.huaweicloud.com/home) 查找自己需要的 Elasticsearch 版本, 下载其压缩包, 我这边选择 elasticsearch-7.8.0-linux-x86_64.tar.gz

# 下载 Elasticsearch 压缩包
wget https://mirrors.huaweicloud.com/elasticsearch/7.8.0/elasticsearch-7.8.0-linux-x86_64.tar.gz

# 解压 并 进入 es 文件夹
tar -zxvf elasticsearch-7.8.0-linux-x86_64.tar.gz && cd elasticsearch-7.8.0

配置文件

解压成功过后, 需要配置 elasticsearch.yml 文件, 才能正常对外提供服务

# 配置文件 以下内容
vim config/elasticsearch.yml

# -----------------
node.name: node-1

# 一定要对应上面 node.name 设置
cluster.initial_master_nodes: ["node-1"] 

# network.host 设置为自己的ip地址 也可以设置成0.0.0.0(代表所有ip可以访问)
network.host: 127.0.0.1
http.port: 9200

# 在最后加上这两句,要不然,外面浏览器就访问不了哈
http.cors.enabled: true
http.cors.allow-origin: "*"
# -----------------

启动 elasticsearch

elasticsearch.yml 文件配置完成过后, 就可以使用命令 ./bin/elasticsearch 尝试启动

打印信息结果出来 publish_address, bound_addresses 提供服务 ip 与 端口, started 以启动字样, 意味着启动成功

[2021-08-05T22:24:12,149][INFO ][o.e.h.AbstractHttpServerTransport] [node-1] publish_address {192.168.20.182:9200}, bound_addresses {0.0.0.0:9200}
[2021-08-05T22:24:12,150][INFO ][o.e.n.Node               ] [node-1] started
[2021-08-05T22:24:12,936][INFO ][o.e.l.LicenseService     ] [node-1] license [2425391e-58ad-4212-8216-556f416a3a8a] mode [basic] - valid
[2021-08-05T22:24:12,939][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [node-1] Active license is now [BASIC]; Security is disabled
[2021-08-05T22:24:12,962][INFO ][o.e.g.GatewayService     ] [node-1] recovered [3] indices into cluster_state
[2021-08-05T22:24:15,378][INFO ][o.e.c.r.a.AllocationService] [node-1] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[material_pass_category][1]]]).
點(diǎn)擊查看更多內(nèi)容
1人點(diǎn)贊

若覺得本文不錯(cuò),就分享一下吧!

評(píng)論

作者其他優(yōu)質(zhì)文章

正在加載中
感謝您的支持,我會(huì)繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會(huì)直接到老師賬戶
支付方式
打開微信掃一掃,即可進(jìn)行掃碼打賞哦
今天注冊有機(jī)會(huì)得

100積分直接送

付費(fèi)專欄免費(fèi)學(xué)

大額優(yōu)惠券免費(fèi)領(lǐng)

立即參與 放棄機(jī)會(huì)
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)

舉報(bào)

0/150
提交
取消