bl双性强迫侵犯h_国产在线观看人成激情视频_蜜芽188_被诱拐的少孩全彩啪啪漫画

Elasticserach常見問題-創新互聯

啟動:

創新互聯公司專注于建甌企業網站建設,響應式網站設計,商城網站建設。建甌網站建設公司,為建甌等地區提供建站服務。全流程按需規劃網站,專業設計,全程項目跟蹤,創新互聯公司專業和態度為您提供的服務

直接啟動: ./bin/elasticsearch

后臺啟動:./bin/elasticsearch -d

測試: curl http://192.168.2.101:9200

停止:

查看es進程: jps | grep Elasticsearch

殺掉進程: kill -9 進程號

問題及解決

問題1:

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

解決方法:

vim /etc/security/limits.conf

在最后面追加下面內容:

francis hard nofile 65536

francis soft nofile 65536 # francis為es安裝目錄的所有者

或者:

soft nofile 65536

hard nofile 65536 # *表示所有用戶,nofile表示大文件句柄數,表示能夠打開的大文件數目

修改后退出重新登錄,使用如下命令查看是否修改成功:

ulimit -Hn

ulimit -Sn

問題2:

max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

解決方法:

vim /etc/sysctl.conf

在最后面追加內容: vm.max_map_count=262144

查看修改后的結果:sysctl -p

問題3:

Java HotSpot? 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 0) failed; error=‘Cannot allocate memory’ (errno=12)

解決方法:

編輯文件 vim /usr/local/elasticsearch/config /jvm.options

修改以下配置,將1g變為更小的值:

-Xms1g

-Xmx1g

問題4:

問題5:

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

解決方法:

vim /usr/local/elasticsearch/config/ elasticsearch.yml

添加配置:cluster.initial_master_nodes: [“node01”]

問題6:

Exception in thread “main” java.nio.file.AccessDeniedException: /usr/local/elasticsearch /config/jvm.options

解決辦法:

這種是權限問題,一般這種權限問題執行: chown -R francis:francis /usr/local/elasticsearch 即可解決

分片數不夠:

[2022-03-18T09:32:07,019][WARN ][o.e.x.m.e.l.LocalExporter] [node-1] unexpected error while indexing monitoring document

org.elasticsearch.xpack.monitoring.exporter.ExportException: org.elasticsearch.common.ValidationException: Validation Failed: 1: this action would add [1] total shards, but this cluster currently has [10437]/[10000] maximum shards open;

解決方法:

PUT /_cluster/settings

{

"transient": {

"cluster": {

"max_shards_per_node":20000

}

}

}

匹配通配符

PUT /_cluster/settings

{

"persistent" : {

"action.destructive_requires_name": false

}

}

你是否還在尋找穩定的海外服務器提供商?創新互聯www.cdcxhl.cn海外機房具備T級流量清洗系統配攻擊溯源,準確流量調度確保服務器高可用性,企業級服務器適合批量采購,新人活動首月15元起,快前往官網查看詳情吧

分享名稱:Elasticserach常見問題-創新互聯
分享網址:http://vcdvsql.cn/article2/jesoc.html

成都網站建設公司_創新互聯,為您提供靜態網站App設計網站改版服務器托管軟件開發網站設計

廣告

聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯

營銷型網站建設