elasticsearch版本:7.14.0
今天在设置es单机远程可访问的时候,启动出现了如下问题。
#启动命令
sh elasticsearch -d
ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap check failure [1] of [1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
ERROR: Elasticsearch did not exit normally - check the logs at /usr/local/elasticsearch-7.14.0/logs/elasticsearch.log
其实最后发现只是启动的时候少了个配置,修改启动命令:
#在es的安装目录的bin目录下执行
sh elasticsearch -d -E "discovery.type=single-node"
然后就可以正常启动并远程访问了。