Elasticsearch

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Elasticsearch相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/border' title='border'>border   绫诲瀷   system   鐩綍   杩涘埗   鏁版嵁鏂囦欢   update   iter   瀛樺偍   

Centos7瀹夎Elasticsearch

鍦?etc/yum.repos.d/鐩綍涓嬪垱寤篹lasticsearch.repo鏂囦欢锛屽苟鍐欏叆涓€涓嬪唴瀹?/p>

[elasticsearch-7.x]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

鏇存柊yum婧?nbsp;

yum update

瀹夎elasticsearch

1 yum install -y elasticsearch

娣诲姞鍒板紑鏈哄惎鍔?/p>

systemctl daemon-reload
systemctl enable elasticsearch.service

鍚姩/鍏抽棴elasticsearch

systemctl start elasticsearch.service
systemctl stop elasticsearch.service

Elasticsearch鐩稿叧鏂囦欢璺緞

绫诲瀷 璇存槑 榛樿浣嶇疆 璁剧疆
home Elasticsearch涓荤洰褰曟垨 $ES_HOME /usr/share/elasticsearch  
bin 浜岃繘鍒惰剼鏈紝鍖呮嫭elasticsearch鍚姩鑺傜偣鍜?/span>elasticsearch-plugin瀹夎鎻掍欢 /usr/share/elasticsearch/bin  
conf 閰嶇疆鏂囦欢鍖呮嫭 elasticsearch.yml /etc/elasticsearch  
conf 鐜鍙橀噺鍖呮嫭鍫嗗ぇ灏忥紝鏂囦欢鎻忚堪绗?/td> /etc/sysconfig/elasticsearch  
data 鑺傜偣涓婂垎閰嶇殑姣忎釜绱㈠紩/鍒嗙墖鐨勬暟鎹枃浠剁殑浣嶇疆銆?/span>鍙互瀹圭撼澶氫釜浣嶇疆 /var/lib/elasticsearch path.data
log 鏃ュ織鏂囦欢浣嶇疆 /var/log/elasticsearch path.logs
plugins 鎻掍欢鏂囦欢浣嶇疆,姣忎釜鎻掍欢灏嗗寘鍚湪涓€涓瓙鐩綍涓?/span> /usr/share/elasticsearch/plugins  
repo 鍏变韩鏂囦欢绯荤粺瀛樺偍搴撲綅缃?鍙互瀹圭撼澶氫釜浣嶇疆,鍙互灏嗘枃浠剁郴缁熷瓨鍌ㄥ簱鏀剧疆鍦ㄦ澶勬寚瀹氱殑浠讳綍鐩綍鐨勪换浣曞瓙鐩綍涓?/span> 鏈厤缃?/td> path.repo

 

 

 

 

 

 

 

Elasticsearch閰嶇疆鏂囦欢锛?etc/elasticsearch锛?/p>

  • elasticsearch.yml 鐢ㄤ簬閰嶇疆Elasticsearch
  • jvm.options 鐢ㄤ簬閰嶇疆Elasticsearch JVM璁剧疆
  • log4j2.properties 鐢ㄤ簬閰嶇疆Elasticsearch鏃ュ織璁板綍

以上是关于Elasticsearch的主要内容,如果未能解决你的问题,请参考以下文章

Elasticsearch笔记九之优化

使用标准库Ruby将数据标记到Elasticsearch批量中

Elasticsearch:如何在 Elasticsearch 中正确使用同义词功能

Elasticsearch:如何在 Elasticsearch 中正确使用同义词功能

Elasticsearch-PHP 索引操作

elasticsearch 特殊字段