ElasticSearch啟動報錯 ERROR: [4] bootstrap checks failed
ElasticSearch啟動報錯如下:
ERROR: [4] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
[2]: max number of threads [3870] for user [elk] is too low, increase to at least [4096]
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[4]:
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
第[1]-[2]項問題解決:
使用root使用者,編輯檔案/etc/security/limits.conf,在檔案的末尾處,增加如下引數
elk hard nofile 65536 #elk 為執行ElasticSearch程式的使用者
elk soft nofile 65536 #elk 為執行ElasticSearch程式的使用者
elk hard nproc 4096 #elk 為執行ElasticSearch程式的使用者
elk soft nproc 4096 #elk 為執行ElasticSearch程式的使用者
儲存並退出編輯
第[3]項問題解決:
使用root使用者,編輯檔案/etc/sysctl.conf,在檔案的末尾處,增加如下引數
vm.max_map_count = 655360
儲存並退出編輯
sysctl -p //使配置生效
第[4]項問題解決:
編輯elasticsearch目錄下,config/elasticsearch.yml檔案,修改如下的引數下如:
#cluster.initial_master_nodes: ["node-1", "node-2"]
cluster.initial_master_nodes: ["node-1"]
儲存並退出編輯
然後使用elk使用者重新啟動ElasticSearch
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70000068/viewspace-2773347/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Homestead 啟動 elasticsearch 報錯Elasticsearch
- weblogic報錯: OPatch failed with error code 73WebAIError
- Mysql啟動報錯:Job for mysqld.service failed because the control process exited with error code.MySqlAIError
- 啟動IDEA 報 failed to load jvm dll XXX 錯誤IdeaAIJVM
- Vue 啟動專案報錯 Failed to compile with 2 errorsVueAICompileError
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- IDEA啟動時報Failed to create JVM錯誤的解決IdeaAIJVM
- Tomcat啟動報錯:Error starting static Resources解決方法TomcatError
- Uncaught Error: Bootstrap‘s JavaScript requires jQuery報錯問題解決ErrorbootJavaScriptUIjQuery
- ubuntu下pig報錯ERROR 2999: Unexpected internal error. Failed to create DataStorage的解決UbuntuErrorAIAST
- git push報錯error: failed to push some refs to 'git@github.com:ErrorAIGithub
- 解決docker啟動映象報錯:docker: Error response from daemonDockerError
- 升級到 MySQL 8.4,MySQL 啟動報錯:io_setup() failed with EAGAINMySqlAI
- Docker Desktop啟動報錯:Failed to set version to docker-desktop: exit code: -1DockerAI
- PyCharm啟動報錯:Failed to create JVM.解決辦法之一PyCharmAIJVM
- HBase啟動報錯:ERROR:org.apache.hadoop.hbase.ipc.ServerNotRunningYetException:ServerisnotrunningyetErrorApacheHadoopServerException
- git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push someGitASTErrorAI
- cassandra啟動報錯:Exiting due to error while processing commit log during initialization.ErrorWhileMIT
- nginx 報錯 accept4 () failed (24: Too many open files)NginxAI
- 重啟docker服務後,容器啟動報錯:Error response from daemon: id already in useDockerError
- 解決啟動Tomcat報錯:Failed to destroy end point associated with ProtocolHandler["ajp-nio-8009"]TomcatAIProtocol
- 【ERROR】OPatch failed with error code 73ErrorAI
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL
- myeclipse啟動報錯Eclipse
- vagrant up 啟動報錯 Stderr: VBoxManage.exe: error: A NAT rule of this name already existsError
- zabbix報錯fping failed:no outputAI
- OGG Director報錯 Connection FAILEDAI
- Android Studio報錯:ERROR: Failed to resolve: com.android.support:appcompat-v7:28.0.+AndroidErrorAIAPP
- 解決 React-Native mac10.14.4 執行報錯 error Failed to build iOS projectReactMacErrorAIUIiOSProject
- MySQL建立使用者報錯 ERROR 1396 (HY000): Operation CREATE USER failed for 'afei'@'%'MySqlErrorAI
- Windows 啟動 Idea 報錯 if you already hava a 64-bit JDK ... 以及 failed to create jvm...WindowsIdeaJDKAIJVM
- 使用mybatis報錯:Error setting non null for parameter #4 with JdbcType TIMESTAMPMyBatisErrorNullJDBC
- mysql 啟動錯誤(InnoDB: Operating system error number 13 )MySqlError
- 本地nacos啟動報錯
- mysql 8 報錯 ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repositoryMySqlErrorAIStruct
- 解決Tomcat啟動報錯問題:Failed to destroy end point associated with ProtocolHandler["ajp-nio-8009"]TomcatAIProtocol
- IDEA 報錯Failed to load JVM DLLIdeaAIJVM
- SQLServer映象報錯Connection handshake failedSQLServerAI