如何查看elasticsearch启动
时间: 2023-11-18 11:48:15 浏览: 267
要查看Elasticsearch的启动状态,可以执行以下步骤:
1. 打开终端或命令提示符窗口。
2. 切换到Elasticsearch的安装目录。
3. 进入`bin`目录。
4. 运行以下命令来启动Elasticsearch: `./elasticsearch`
5. 等待一段时间,直到看到类似以下日志输出,表示Elasticsearch已经成功启动:
```
[timestamp][INFO ][o.e.n.Node ] [node_name] initialized
[timestamp][INFO ][o.e.n.Node ] [node_name] starting ...
[timestamp][INFO ][o.e.t.TransportService ] [node_name] publish_address {host:port}, bound_addresses {host:port}
[timestamp][INFO ][o.e.b.BootstrapChecks ] [node_name] bound or publishing to a non-loopback address, enforcing bootstrap checks
[timestamp][INFO ][o.e.c.s.ClusterApplierService] [node_name] cluster applier started
[timestamp][INFO ][o.e.c.s.MasterService ] [node_name] elected-as-master ([1] nodes joined)[{node_name}{node_id}{address}{host:port}{rack=rack_name} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 1, version: 1, delta: master node changed {previous [], current [{node_name}{node_id}{address}{host:port}{rack=rack_name}]}
[timestamp][INFO ][o.e.c.s.ClusterService ] [node_name] new_master {node_name}{node_id}{address}{host:port}{rack=rack_name}, reason: _BECOME_MASTER_TASK_, _FINISH_ELECTION_
[timestamp][INFO ][o.e.c.s.ClusterService ] [node_name] cluster UUID {cluster_uuid}
[timestamp][INFO ][o.e.c.s.ClusterService ] [node_name] added {{node_name}{node_id}{address}{host:port}{rack=rack_name},}, reason: _JOIN_REJOIN_, at version 1
[timestamp][INFO ][o.e.c.s.ClusterService ] [node_name] started
[timestamp][INFO ][o.e.g.GatewayService ] [node_name] recovered [X] indices into cluster_state
[timestamp][INFO ][o.e.h.AbstractHttpServerTransport] [node_name] publish_address {host:port}, bound_addresses {host:port}
[timestamp][INFO ][o.e.n.Node ] [node_name] started
```
如果你看到类似的输出,那么Elasticsearch已经成功启动了。如果出现错误或异常,请检查配置文件和日志文件以获取更多详细信息。
阅读全文