二 Elasticsearch 基础之安装( 二 )


|-- .
日志配置文件
|-- …
data/
在节点上申请的每个index/shard的数据文件的位置,可容纳多个位置
jdk/
jdk包(7.0版本以后自带jdk环境,如果已经配置了jdk,会优先使用外部 jdk 环境)
lib/
引用的相关类库的存放目录,.jar本身也放于该目录
logs/
日志文件位置
/
功能模块的存放目录,如aggs、、geoip、xpack、eval 。。。
/
插件文件位置 。每个插件将包含在一个子目录中
.
文档
.txt
证书
.txt
通知
注意事项:
3、启动⑴、正常启动流程
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━? Elasticsearch security features have been automatically configured!? Authentication is enabled and cluster connections are encrypted.??Password for the elastic user (reset with `bin/elasticsearch-reset-password -u elastic`):kT62lzIOXGu6NRWwNw0Q??HTTP CA certificate SHA-256 fingerprint:e879957d366063beb27b20852f7bcf403801213732e9ccfcfefae06a6f1053fe??Configure Kibana to use this cluster:? Run Kibana and click the configuration link in the terminal when Kibana starts.? Copy the following enrollment token and paste it into Kibana in your browser (valid for the next 30 minutes):eyJ2ZXIiOiI4LjYuMSIsImFkciI6WyIxNzIuMTcuMC4xMjo5MjAwIl0sImZnciI6ImU4Nzk5NTdkMzY2MDYzYmViMjdiMjA4NTJmN2JjZjQwMzgwMTIxMzczMmU5Y2NmY2ZlZmFlMDZhNmYxMDUzZmUiLCJrZXkiOiJxQ2pLV0lZQjRtVFF3ZXU1a2RiWDowZFdqY1BwYVJfT1U5VUxKSGFpNmFRIn0=??Configure other nodes to join this cluster:? On this node:? Create an enrollment token with `bin/elasticsearch-create-enrollment-token -s node`.? Uncomment the transport.host setting at the end of config/elasticsearch.yml.? Restart Elasticsearch.? On other nodes:? Start Elasticsearch with `bin/elasticsearch --enrollment-token `, using the enrollment token that you generated.━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⑵、启动过程遇到的问题 ①、启动报错
运行 bin/ 目录下的脚本,启动 :
[root@VM-0-12-centos elasticsearch-8.6.1]# ./bin/elasticsearch[2023-02-14T17:44:22,531][ERROR][o.e.b.Elasticsearch] [VM-0-12-centos] fatal exception while booting Elasticsearchjava.lang.RuntimeException: can not run elasticsearch as rootat org.elasticsearch.server@8.6.1/org.elasticsearch.bootstrap.Elasticsearch.initializeNatives(Elasticsearch.java:260)at org.elasticsearch.server@8.6.1/org.elasticsearch.bootstrap.Elasticsearch.initPhase2(Elasticsearch.java:166)at org.elasticsearch.server@8.6.1/org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:66)See logs for more details.ERROR: Elasticsearch did not exit normally - check the logs at /usr/local/elasticsearch-8.6.1/logs/elasticsearch.logERROR: Elasticsearch exited unexpectedly[root@VM-0-12-centos elasticsearch-8.6.1]#