Elastic Search安装完成后无法启动

在CentOS7.8上安装配置完成后初次启动会在输出以下日志后卡住,请问有什么解决办法吗?

[2022-11-01T22:48:44,788][INFO ][o.e.n.Node               ] [node-1] started {node-1}{G9dqjNsoRKKiW16C2kJYRQ}{09N_x9F9Tjuqd3OeeYchEg}{node-1}{10.11.0.2}{10.11.0.2:9300}{cdfhilmrstw}{ml.machine_memory=8092782592, ml.max_jvm_size=4047503360, ml.allocated_processors=8, xpack.installed=true}
[2022-11-01T22:48:44,966][INFO ][o.e.l.LicenseService     ] [node-1] license [88fd4761-fd27-4fa4-9645-01b993f9bc68] mode [basic] - valid
[2022-11-01T22:48:44,970][INFO ][o.e.g.GatewayService     ] [node-1] recovered [5] indices into cluster_state
[2022-11-01T22:48:47,847][INFO ][o.e.c.r.a.AllocationService] [node-1] current.health="YELLOW" message="Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.ds-metricbeat-8.4.3-2022.10.31-000001][0]]])." previous.health="RED" reason="shards started [[.ds-metricbeat-8.4.3-2022.10.31-000001][0]]"
[2022-11-02T01:30:00,001][INFO ][o.e.x.m.MlDailyMaintenanceService] [node-1] triggering scheduled [ML] maintenance tasks
[2022-11-02T01:30:00,014][INFO ][o.e.x.m.a.TransportDeleteExpiredDataAction] [node-1] Deleting expired data
[2022-11-02T01:30:00,053][INFO ][o.e.x.m.j.r.UnusedStatsRemover] [node-1] Successfully deleted [0] unused stats documents
[2022-11-02T01:30:00,054][INFO ][o.e.x.m.a.TransportDeleteExpiredDataAction] [node-1] Completed deletion of expired ML data
[2022-11-02T01:30:00,055][INFO ][o.e.x.m.MlDailyMaintenanceService] [node-1] Successfully completed [ML] maintenance task: triggerDeleteExpiredDataTask

可以看出前四条日志与之后的日志发生时间隔了相当久,在之前尝试启动服务的时候甚至有第一天下午6点左右卡到9点左右,然后再到第二天凌晨1点左右还有日志输出若干条然后继续卡到早上10点左右依旧没有成功启动。

你使用的 rpm 方式安装的么?如果是单节点服务器的话,需要在配置文件中指定一下相关配置参数:
例如:

cluster.name: homelab-elk8
discovery.type: single-node
network.host: 0.0.0.0
xpack.security.authc.api_key.enabled: true

默认的安装参数是集群启动,所以需要注释掉类似如下这行。

cluster.initial_master_nodes: ["elk8"] ;

rpm 的默认安装,如果不做上面的这些参数修改的话,确实是无法正常启动和使用的。
希望上面的这些对你有帮助!

我是使用yum安装的。
我写在配置文件中与您所说的参数有

node.name: node-1
network.host: 0.0.0.0
cluster.initial_master_nodes: ["node-1","node-2"]

现在添加discovery.type: single-node更改为单节点并加上了xpack.security.authc.api_key.enabled: true,但还是会卡在

[2022-11-02T04:33:19,813][INFO ][o.e.r.s.FileSettingsService] [node-1] starting file settings watcher ...
[2022-11-02T04:33:19,818][INFO ][o.e.r.s.FileSettingsService] [node-1] file settings service up and running [tid=44]
[2022-11-02T04:33:19,822][INFO ][o.e.h.AbstractHttpServerTransport] [node-1] publish_address {10.11.0.2:9200}, bound_addresses {[::]:9200}
[2022-11-02T04:33:19,822][INFO ][o.e.n.Node               ] [node-1] started {node-1}{G9dqjNsoRKKiW16C2kJYRQ}{A56tbixASaCAOEuTVgV9rQ}{node-1}{10.11.0.2}{10.11.0.2:9300}{cdfhilmrstw}{xpack.installed=true, ml.machine_memory=8092782592, ml.max_jvm_size=4047503360, ml.allocated_processors=8}
[2022-11-02T04:33:19,988][INFO ][o.e.l.LicenseService     ] [node-1] license [88fd4761-fd27-4fa4-9645-01b993f9bc68] mode [basic] - valid
[2022-11-02T04:33:19,992][INFO ][o.e.g.GatewayService     ] [node-1] recovered [5] indices into cluster_state
[2022-11-02T04:33:21,491][INFO ][o.e.c.r.a.AllocationService] [node-1] current.health="YELLOW" message="Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.ds-metricbeat-8.4.3-2022.10.31-000001][0]]])." previous.health="RED" reason="shards started [[.ds-metricbeat-8.4.3-2022.10.31-000001][0]]"

卡在这里有几分钟了。

如果你只有两个服务器的话,建议还是安装单机的吧?集群的 es 还是至少从 3 节点起步比较合理。

如果是单节点的话参考一下的这些必要的配置参数:

cluster.name: homelab-elk8
discovery.type: single-node
network.host: 0.0.0.0
xpack.security.authc.api_key.enabled: true

单节点的服务器,配置文件中一定不要有这一行 cluster.initial_master_nodes: ["elk8"] ;
其它的参数如果有的话,影响应该不大,尝试这样单节点启动试试看。

我这里有两个教程,可以参考下:

https://elastic.martinliu.cn/codelabs/elastic-stack-quick-start-guide-84/#0

现在已经改为单节点启动了,感觉主要问题在于message="Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.ds-metricbeat-8.4.3-2022.10.31-000001][0]]])." previous.health="RED" reason="shards started,但写的原因看起来有不是什么大问题所以找不到头绪。稍后会根据您发的教程在排查一遍。

您好我按照以上教程重新安装配置了一次,但仍然卡在了我提出的问题的地方。这是否有可能与我的硬件环境有关?因为我曾在CentOS虚拟机上成功安装过Elasticsearch。

把配置文件和,启动日志贴出来看看吧

node.name: node-1
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
#path.data: /path/to/data
#
# Path to log files:
#
#path.logs: /path/to/logs
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
bootstrap.memory_lock: false
network.host: 0.0.0.0
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
#
#http.port: 9200
#discovery.seed_hosts: ["host1", "host2"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
#cluster.initial_master_nodes: ["node-1","node-2"]
xpack.security.authc.api_key.enabled: true
# Enable security features
xpack.security.enabled: false

xpack.security.enrollment.enabled: true

# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
  enabled: true
  keystore.path: certs/http.p12

# Enable encryption and mutual authentication between cluster nodes
xpack.security.transport.ssl:
  enabled: true
  keystore.path: certs/http.p12

# Enable encryption and mutual authentication between cluster nodes
xpack.security.transport.ssl:
  enabled: true
  verification_mode: certificate
  keystore.path: certs/transport.p12
  truststore.path: certs/transport.p12
http.host: 0.0.0.0

# Allow other nodes to join the cluster from anywhere
# Connections are encrypted and mutually authenticated
#transport.host: 0.0.0.0
ingest.geoip.downloader.enabled: false
discovery.type: single-node
[elastic@localhost root]$ /etc/elasticsearch-8.4.3/bin/elasticsearch
[2022-11-04T03:20:43,654][INFO ][o.e.n.Node               ] [node-1] version[8.4.3], pid[9874], build[tar/42f05b9372a9a4a470db3b52817899b99a76ee73/2022-10-04T07:17:24.662462378Z], OS[Linux/3.10.0-1160.76.1.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/18.0.2.1/18.0.2.1+1-1]
[2022-11-04T03:20:43,677][INFO ][o.e.n.Node               ] [node-1] JVM home [/etc/elasticsearch-8.4.3/jdk], using bundled JDK [true]
[2022-11-04T03:20:43,678][INFO ][o.e.n.Node               ] [node-1] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -Djava.security.manager=allow, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-18373081537910840130, -XX:+HeapDumpOnOutOfMemoryError, -XX:+ExitOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Xms3858m, -Xmx3858m, -XX:MaxDirectMemorySize=2022703104, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.distribution.type=tar, --module-path=/etc/elasticsearch-8.4.3/lib, --add-modules=jdk.net, -Djdk.module.main=org.elasticsearch.server]
[2022-11-04T03:20:45,291][INFO ][c.a.c.i.j.JacksonVersion ] [node-1] Package versions: jackson-annotations=2.13.2, jackson-core=2.13.2, jackson-databind=2.13.2.2, jackson-dataformat-xml=2.13.2, jackson-datatype-jsr310=2.13.2, azure-core=1.27.0, Troubleshooting version conflicts: https://aka.ms/azsdk/java/dependency/troubleshoot
[2022-11-04T03:20:46,534][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [aggs-matrix-stats]
[2022-11-04T03:20:46,535][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [analysis-common]
[2022-11-04T03:20:46,535][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [constant-keyword]
[2022-11-04T03:20:46,535][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [data-streams]
[2022-11-04T03:20:46,536][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [frozen-indices]
[2022-11-04T03:20:46,536][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [ingest-attachment]
[2022-11-04T03:20:46,536][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [ingest-common]
[2022-11-04T03:20:46,536][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [ingest-geoip]
[2022-11-04T03:20:46,537][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [ingest-user-agent]
[2022-11-04T03:20:46,537][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [kibana]
[2022-11-04T03:20:46,537][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-expression]
[2022-11-04T03:20:46,537][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-mustache]
[2022-11-04T03:20:46,538][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-painless]
[2022-11-04T03:20:46,538][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [legacy-geo]
[2022-11-04T03:20:46,538][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [mapper-extras]
[2022-11-04T03:20:46,539][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [mapper-version]
[2022-11-04T03:20:46,539][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [old-lucene-versions]
[2022-11-04T03:20:46,539][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [parent-join]
[2022-11-04T03:20:46,539][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [percolator]
[2022-11-04T03:20:46,540][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [rank-eval]
[2022-11-04T03:20:46,540][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [reindex]
[2022-11-04T03:20:46,540][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [repositories-metering-api]
[2022-11-04T03:20:46,540][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [repository-azure]
[2022-11-04T03:20:46,541][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [repository-encrypted]
[2022-11-04T03:20:46,541][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [repository-gcs]
[2022-11-04T03:20:46,541][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [repository-s3]
[2022-11-04T03:20:46,541][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [repository-url]
[2022-11-04T03:20:46,542][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [runtime-fields-common]
[2022-11-04T03:20:46,542][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [search-business-rules]
[2022-11-04T03:20:46,542][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [searchable-snapshots]
[2022-11-04T03:20:46,542][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [snapshot-based-recoveries]
[2022-11-04T03:20:46,543][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [snapshot-repo-test-kit]
[2022-11-04T03:20:46,543][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [spatial]
[2022-11-04T03:20:46,543][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [transform]
[2022-11-04T03:20:46,543][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [transport-netty4]
[2022-11-04T03:20:46,544][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [unsigned-long]
[2022-11-04T03:20:46,544][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [vector-tile]
[2022-11-04T03:20:46,544][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [wildcard]
[2022-11-04T03:20:46,544][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-aggregate-metric]
[2022-11-04T03:20:46,544][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-analytics]
[2022-11-04T03:20:46,545][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-async]
[2022-11-04T03:20:46,545][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-async-search]
[2022-11-04T03:20:46,545][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-autoscaling]
[2022-11-04T03:20:46,545][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-ccr]
[2022-11-04T03:20:46,546][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-core]
[2022-11-04T03:20:46,546][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-deprecation]
[2022-11-04T03:20:46,546][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-enrich]
[2022-11-04T03:20:46,546][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-eql]
[2022-11-04T03:20:46,546][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-fleet]
[2022-11-04T03:20:46,547][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-graph]
[2022-11-04T03:20:46,547][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-identity-provider]
[2022-11-04T03:20:46,547][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-ilm]
[2022-11-04T03:20:46,547][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-logstash]
[2022-11-04T03:20:46,547][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-ml]
[2022-11-04T03:20:46,548][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-monitoring]
[2022-11-04T03:20:46,548][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-ql]
[2022-11-04T03:20:46,548][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-rollup]
[2022-11-04T03:20:46,548][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-security]
[2022-11-04T03:20:46,548][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-shutdown]
[2022-11-04T03:20:46,549][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-sql]
[2022-11-04T03:20:46,549][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-stack]
[2022-11-04T03:20:46,549][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-text-structure]
[2022-11-04T03:20:46,549][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-voting-only-node]
[2022-11-04T03:20:46,549][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-watcher]
[2022-11-04T03:20:46,550][INFO ][o.e.p.PluginsService     ] [node-1] no plugins loaded
[2022-11-04T03:20:49,164][INFO ][o.e.e.NodeEnvironment    ] [node-1] using [1] data paths, mounts [[/ (/dev/mapper/centos-root)]], net usable_space [36gb], net total_space [49.9gb], types [xfs]
[2022-11-04T03:20:49,164][INFO ][o.e.e.NodeEnvironment    ] [node-1] heap size [3.7gb], compressed ordinary object pointers [true]
[2022-11-04T03:20:49,211][INFO ][o.e.n.Node               ] [node-1] node name [node-1], node ID [G9dqjNsoRKKiW16C2kJYRQ], cluster name [elasticsearch], roles [ingest, data_frozen, ml, data_hot, transform, data_content, data_warm, master, remote_cluster_client, data, data_cold]
[2022-11-04T03:20:52,574][INFO ][o.e.x.s.Security         ] [node-1] Security is disabled
[2022-11-04T03:20:52,631][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [node-1] [controller/9903] [Main.cc@123] controller (64 bit): Version 8.4.3 (Build 9c00cf51c9fea9) Copyright (c) 2022 Elasticsearch BV
[2022-11-04T03:20:52,995][INFO ][o.e.t.n.NettyAllocator   ] [node-1] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=1mb, suggested_max_allocation_size=1mb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=4mb}]
[2022-11-04T03:20:53,017][INFO ][o.e.i.r.RecoverySettings ] [node-1] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
[2022-11-04T03:20:53,053][INFO ][o.e.d.DiscoveryModule    ] [node-1] using discovery type [single-node] and seed hosts providers [settings]
[2022-11-04T03:20:54,074][INFO ][o.e.n.Node               ] [node-1] initialized
[2022-11-04T03:20:54,075][INFO ][o.e.n.Node               ] [node-1] starting ...
[2022-11-04T03:20:54,105][INFO ][o.e.x.s.c.f.PersistentCache] [node-1] persistent cache index loaded
[2022-11-04T03:20:54,106][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [node-1] deprecation component started
[2022-11-04T03:20:54,189][INFO ][o.e.t.TransportService   ] [node-1] publish_address {10.11.0.2:9300}, bound_addresses {[::]:9300}
[2022-11-04T03:20:55,253][WARN ][o.e.c.c.ClusterBootstrapService] [node-1] this node is locked into cluster UUID [Kb-yXAyDSpyeKYJ4HetlDA] but [cluster.initial_master_nodes] is set to [node-1]; remove this setting to avoid possible data loss caused by subsequent cluster bootstrap attempts
[2022-11-04T03:20:55,360][INFO ][o.e.c.s.MasterService    ] [node-1] elected-as-master ([1] nodes joined)[_FINISH_ELECTION_, {node-1}{G9dqjNsoRKKiW16C2kJYRQ}{XzZrsYAtSRSzwfTA2EQQqA}{node-1}{10.11.0.2}{10.11.0.2:9300}{cdfhilmrstw} completing election], term: 12, version: 152, delta: master node changed {previous [], current [{node-1}{G9dqjNsoRKKiW16C2kJYRQ}{XzZrsYAtSRSzwfTA2EQQqA}{node-1}{10.11.0.2}{10.11.0.2:9300}{cdfhilmrstw}]}
[2022-11-04T03:20:55,486][INFO ][o.e.c.s.ClusterApplierService] [node-1] master node changed {previous [], current [{node-1}{G9dqjNsoRKKiW16C2kJYRQ}{XzZrsYAtSRSzwfTA2EQQqA}{node-1}{10.11.0.2}{10.11.0.2:9300}{cdfhilmrstw}]}, term: 12, version: 152, reason: Publication{term=12, version=152}
[2022-11-04T03:20:55,544][INFO ][o.e.r.s.FileSettingsService] [node-1] starting file settings watcher ...
[2022-11-04T03:20:55,548][INFO ][o.e.r.s.FileSettingsService] [node-1] file settings service up and running [tid=46]
[2022-11-04T03:20:55,551][INFO ][o.e.h.AbstractHttpServerTransport] [node-1] publish_address {10.11.0.2:9200}, bound_addresses {[::]:9200}
[2022-11-04T03:20:55,552][INFO ][o.e.n.Node               ] [node-1] started {node-1}{G9dqjNsoRKKiW16C2kJYRQ}{XzZrsYAtSRSzwfTA2EQQqA}{node-1}{10.11.0.2}{10.11.0.2:9300}{cdfhilmrstw}{ml.machine_memory=8092782592, ml.max_jvm_size=4047503360, ml.allocated_processors=8, xpack.installed=true}
[2022-11-04T03:20:55,723][INFO ][o.e.l.LicenseService     ] [node-1] license [88fd4761-fd27-4fa4-9645-01b993f9bc68] mode [basic] - valid
[2022-11-04T03:20:55,726][INFO ][o.e.g.GatewayService     ] [node-1] recovered [5] indices into cluster_state
[2022-11-04T03:20:57,110][INFO ][o.e.c.r.a.AllocationService] [node-1] current.health="YELLOW" message="Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.ds-metricbeat-8.4.3-2022.10.31-000001][0]]])." previous.health="RED" reason="shards started [[.ds-metricbeat-8.4.3-2022.10.31-000001][0]]"

请参考这个教程试下,Elastic Stack Fleet 服务器配置指南(v8.5) - Elastic Stack Workshop | 刘征 Developer Advocate @ Elastic 视频在 https://www.bilibili.com/video/BV1kK411m7DB/?vd_source=a44ab593d0e1de51d5532eccc4b1a9cf#reply474877000

好的稍后去看一下。目前我发现在停止输出日志后打开另一个终端用curl测试localhost:9200显示进入数据库的内容,但把第一个终端关闭的话也就断了。不知道这样对不对。