elasticsearch及ik插件安装

cd /home/finance/Install/
# 下载
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch‐5.5.2.tar.gz
# 解压缩
tar ‐zxvf elasticsearch‐5.5.2.tar.gz
cd /home/finance/Install/elasticsearch‐5.5.2
# 修改配置
vim config/elasticsearch.yml
cluster.name: smart‐xma
node.name: node‐208
network.host: 10.250.150.208
http.port: 9200
transport.tcp.port: 9300
node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["10.250.150.208:9300"]
discovery.zen.minimum_master_nodes: 2
path.data: /home/finance/es/data
path.logs: /home/finance/es/log
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
http.cors.enabled: true
http.cors.allow‐origin: "*"
vim jvm.options
‐Xms2g
‐Xmx2g
# 安装IK插件
cd /home/finance/Install/elasticsearch/bin
./elasticsearch‐plugin install https://github.com/medcl/elasticsearch‐analysisik/
releases/download/v5.5.2/elasticsearch‐analysis‐ik‐5.5.2.zip
sudo vim /etc/sysctl.conf
vm.max_map_count=655360
sysctl ‐p
# 启动
bin/elasticsearch ‐d
# 查看进程
jps ‐mlv | grep elasticsearch
# 设置开机启动
echo "runuser ‐l elasticsearch ‐c '/home/finance/Install/elasticsearch/bin/elasticsearch ‐d'" >>
/etc/rc.local
# 查看集群信息
curl 10.250.150.208:9200

猜你喜欢

转载自blog.csdn.net/lj88811498/article/details/82772861
0条评论
添加一条新回复
  
今日推荐