OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException: java.nio.file.AccessDeniedException: /usr/local/elasticsearch-7.2.1/config/elasticsearch.keystore

Likely root cause: java.nio.file.AccessDeniedException: /usr/local/elasticsearch-7.2.1/config/elasticsearch.keystore 


原因是/usr/local/elasticsearch-7.2.1/config/elasticsearch.keystore 这个文件的所有者还是root,并不是创建的es用户;


输入命令:chown -R es:es elasticsearch.keystore