当前位置:网站首页>elastic_ L02_ install
elastic_ L02_ install
2022-07-03 12:25:00 【jackaroo2020】
Reading guide
The description and explanation of this article are based on ElasticSearch 7.15.1 edition , Installed in the centos7 Environment , If the article configuration is different , Subject to the official website documents , Mainly about downloading 、 install 、 Description of operation and main configuration .
1. download
Official website download address
JVM To configure -config/jvm.options The default setting is 4GB
Configuration suggestions :Xmx Don't exceed the memory of the machine 50%, Don't exceed 30GB
2. install
Official website installation documents
# Download and install
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.15.1-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.15.1-linux-x86_64.tar.gz.sha512
shasum -a 512 -c elasticsearch-7.15.1-linux-x86_64.tar.gz.sha512
tar -xzf elasticsearch-7.15.1-linux-x86_64.tar.gz
cd elasticsearch-7.15.1/
# Install word segmentation plug-in
./bin/elasticsearch-plugin install analysis-icu
# Check the plugin
./bin/elasticsearch-plugin list
3. function
# start-up
./bin/elasticsearch
# verification ES Startup successful Check the process
ps -ef|grep es
# Access port verification :curl http://127.0.0.1:9200
{
"name" : "localhost.localdomain",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "_na_",
"version" : {
"number" : "7.15.1",
"build_flavor" : "default",
"build_type" : "tar",
"build_hash" : "83c34f456ae29d60e94d886e455e6a3409bba9ed",
"build_date" : "2021-10-07T21:56:19.031608185Z",
"build_snapshot" : false,
"lucene_version" : "8.9.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
# Running multiple instances
./bin/elasticsearch -d -E cluster.name=my_cluster -Enode.name=node_1
# Daemons start
./bin/elasticsearch -d -p pid
# close
pkill -F pid
4. problem
problem 1: user
Exception java.lang.RuntimeException: can not run elasticsearch as root
sudo userad es
sudo passwd es
sudo chown -R es:es elasticsearch-7.15.1
problem 2: File descriptor
bootstrap check failure [1] of [3]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
# Additional content ; Log in the user again , Will take effect
cp /etc/security/limits.conf /etc/security/limits.conf.bak
echo "es soft nofile 65536" >> /etc/security/limits.conf
echo "es hard nofile 65536" >> /etc/security/limits.conf
problem 3: Number of threads
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
# Additional content
cp /etc/sysctl.conf /etc/sysctl.conf.bak
echo "vm.max_map_count=655360" >> /etc/sysctl.conf
sysctl -p
problem 4: Node configuration
the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
# stay elasticsearch.yml Uncomment keep a node
cluster.initial_master_nodes: ["node-1"]
边栏推荐
- (构造笔记)GRASP学习心得
- Computer version wechat applet full screen display method, mobile phone horizontal screen method.
- Adult adult adult
- Jsup crawls Baidu Encyclopedia
- Wechat applet pages always report errors when sending values to the background. It turned out to be this pit!
- (构造笔记)从类、API、框架三个层面学习如何设计可复用软件实体的具体技术
- OpenGL shader use
- Basic knowledge of OpenGL (sort it out according to your own understanding)
- Capturing and sorting out external Fiddler -- Conversation bar and filter [2]
- Dart: self study system
猜你喜欢
随机推荐
2.9 overview of databinding knowledge points
[learning notes] DP status and transfer
20. Valid brackets
Itext7 uses iexternalsignature container for signature and signature verification
JVM内存模型
QT OpenGL rotate, pan, zoom
Lambda expression
2.7 overview of livedata knowledge points
Apprendre à concevoir des entités logicielles réutilisables à partir de la classe, de l'API et du cadre
Oracle advanced (I) realize DMP by expdp impdp command
(构造笔记)GRASP学习心得
wpa_ cli
SLF4J 日志门面
[embedded] - Introduction to four memory areas
1-2 project technology selection and structure
Php Export word method (One MHT)
在网上炒股开户可以吗?资金安全吗?
php 获取文件夹下面的文件列表和文件夹列表
win10 上PHP artisan storage:link 出现 symlink (): Protocol error的解决办法
Slf4j log facade