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
- CRS啟動報錯Failed 3 to bind listening endpointAI
- Vue 啟動專案報錯 Failed to compile with 2 errorsVueAICompileError
- VMware 啟動報錯 "Failed to lock the file"解決辦法AI
- lsnrctl啟動報錯,Linux Error: 29: Illegal seekLinuxError
- JBAS014613: Operation ("add") failed啟動報錯AI
- VM啟動報:failed to launch peer processAI
- Uncaught Error: Bootstrap‘s JavaScript requires jQuery報錯問題解決ErrorbootJavaScriptUIjQuery
- 解決docker啟動映象報錯:docker: Error response from daemonDockerError
- git push報錯error: failed to push some refs to 'git@github.com:ErrorAIGithub
- 啟動IDEA 報 failed to load jvm dll XXX 錯誤IdeaAIJVM
- PyCharm啟動報錯:Failed to create JVM.解決辦法之一PyCharmAIJVM
- kafka啟動報錯:kafka.common.KafkaException: Failed to acquire lock on file .lockKafkaExceptionAIUI
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- Tomcat啟動報錯:Error starting static Resources解決方法TomcatError
- mongodb 啟動報錯MongoDB
- php啟動報錯PHP
- 10g GC 啟動oms報錯Unexpected error occurred. Check error and log files.GCError
- nginx 報錯 accept4 () failed (24: Too many open files)NginxAI
- mysql啟動報錯Manager of pid-file quit without updating file.[FAILED]MySqlUIAI
- 升級到 MySQL 8.4,MySQL 啟動報錯:io_setup() failed with EAGAINMySqlAI
- Docker Desktop啟動報錯:Failed to set version to docker-desktop: exit code: -1DockerAI
- myeclipse啟動報錯Eclipse
- 本地nacos啟動報錯
- 重啟docker服務後,容器啟動報錯:Error response from daemon: id already in useDockerError
- 啟動Eclipse的時候報錯Failed to load the JNI shared library..EclipseAI
- 解決啟動報錯:Failed to destroy end point associated with ProtocolHandler["ajp-nio-8009"]AIProtocol
- asm報錯一例-support 報錯rename failedASMAI
- ubuntu下pig報錯ERROR 2999: Unexpected internal error. Failed to create DataStorage的解決UbuntuErrorAIAST
- git push origin master 時出現報錯 error: src refspec master does not match any error: failed to push someGitASTErrorAI
- HBase啟動報錯:ERROR:org.apache.hadoop.hbase.ipc.ServerNotRunningYetException:ServerisnotrunningyetErrorApacheHadoopServerException
- apache啟動報錯:httpd: aprApachehttpd
- laravel sail 首次啟動報錯LaravelAI
- sqlplus 啟動報錯SQL
- 啟動ASM 例項報錯ASM
- 關於Tomcat啟動報錯:Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]TomcatAIProtocolHTTP