bootstrap check failure [1] of [1]: max file descriptors [4096] for elasticsearch process is too low

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]

我安装的是elasticsearch 7.16.3, 开始是因为外网无法访问, 放开配置文件的network.host: 0.0.0.0配置后, 启动就报了这个错误, 还有一个错误, 网上搜一下就知道 了; 这个问题我也搜到了, 但是要注意的是, 修改了/etc/security/limits.conf这个配置文件之后, elasticsearch的用户要重新切换一下, su elastic, 才能生效

/etc/security/limits.conf在末尾追加配置:

elastic hard nofile 65535
elastic soft nofile 65535

注意: 要重新su elastic切换用户

你可能感兴趣的:(elasticsearch,jenkins,大数据)