elasticsearch 安裝: 下載頁:https://www.elastic.co/downloads/elasticsearch#ga-release wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.4.tar.gz tar -zxvf elasticsearch-6.5.4.tar.gz cd config vim elasticsearch.yml 寫入 (記得要有空格) xpack.ml.enabled: false network.host: 0.0.0.0 http.port: 8301 #memory bootstrap.memory_lock: false bootstrap.system_call_filter: false 修改系統配置: 注意 要以root身份執行下面的腳本,執行後要重新登錄普通賬戶啓動ES #!/bin/bash echo "* soft nofile 65536" >> /etc/security/limits.conf echo "* hard nofile 65536" >> /etc/security/limits.conf echo "* soft memlock unlimited" >> /etc/security/limits.conf echo "* hard memlock unlimited" >> /etc/security/limits.conf echo "vm.max_map_count = 262144" >> /etc/sysctl.conf sysctl -p ulimit -l unlimited 查看配置:sysctl -p 不能用root啓動 把權限賦給es用戶 chown -R es:es /usr/local/elasticsearch/ 啓動:./bin/elasticsearch 如果報錯 OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N 在config/jvm.options 需要修改 添加 -XX:-AssumeMP 這些參數要比系統的內存要小 -Xms -Xmx
elasticsearch 安裝歷程
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.