1:下載和解壓:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.2.tar.gz
2:配置config/elasticsearch.yml
network.host: 10.99.32.16
http.port: 9200
path.logs: /root/elasticsearch/log
path.data: /root/elasticsearch/data
node.name: node-1
cluster.name: mycluster
discovery.zen.ping.unicast.hosts: ["10.99.32.16", "10.99.32.17", "10.99.32.18"]
discovery.zen.minimum_master_nodes: 2
bootstrap.memory_lock: true
3:配置config/jvm.options
4:配置一些系統(tǒng)內(nèi)核參數(shù):
成都創(chuàng)新互聯(lián)公司于2013年開始,是專業(yè)互聯(lián)網(wǎng)技術服務公司,擁有項目成都網(wǎng)站設計、成都網(wǎng)站制作網(wǎng)站策劃,項目實施與項目整合能力。我們以讓每一個夢想脫穎而出為使命,1280元橋西做網(wǎng)站,已為上家服務,為橋西各地企業(yè)和個人服務,聯(lián)系電話:18982081108
can not run elasticsearch as root:
不能使用root用戶進行操作,需要創(chuàng)建一個用戶,并把原來的目錄的擁有者更改為該用戶
adduser myuser
passwd myuser
chown -R myuser /mypath
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
修改/etc/security/limits.conf
添加:elastic hard nofile 65536
max file size [67107840] for user [elastic] is too low, increase to [unlimited]
修改/etc/security/limits.conf
elastic soft fsize unlimited
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
解決:sysctl -w vm.max_map_count=262144
5:運行:
bin/elasticsearch
后臺運行:bin/elasticsearch -d -p pidFile
會生成一個pidFile文件,記錄pid
隨系統(tǒng)啟動:
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
文章題目:簡易elasticsearch服務器搭建
網(wǎng)站地址:http://vcdvsql.cn/article12/jhgedc.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供App開發(fā)、網(wǎng)站營銷、外貿(mào)建站、軟件開發(fā)、網(wǎng)站制作、商城網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)