head插件无法连接elasticsearch

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/m0_37814112/article/details/81175591

故障背景:elasticsearch集群有2个节点,分别访问这两个节点都是没有问题的,在47.98.97.124这个节点安装了head插件,但是却无法访问!

故障分析:
[root@host-47-98-97-124 elasticsearch-head]# npm install
npm WARN elasticsearch-head@0.0.0 license should be a valid SPDX license expression
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:”darwin”,”arch”:”any”} (current: {“os”:”linux”,”arch”:”x64”})
added 8 packages in 56.889s

╭─────────────────────────────────────╮
│ │
│ Update available 5.6.0 → 6.2.0 │
│ Run npm i -g npm to update │
│ │
╰─────────────────────────────────────╯

故障解决:
[root@host-47-98-97-124 elasticsearch-head]# npm i -g npm
/root/node-v8.9.4-linux-x64/bin/npm -> /root/node-v8.9.4-linux-x64/lib/node_modules/npm/bin/npm-cli.js
/root/node-v8.9.4-linux-x64/bin/npx -> /root/node-v8.9.4-linux-x64/lib/node_modules/npm/bin/npx-cli.js
+ npm@6.2.0
added 282 packages, removed 363 packages and updated 41 packages in 9.77s

[root@host-47-98-97-124 elasticsearch-head]# grunt server
(node:31658) ExperimentalWarning: The http2 module is an experimental API.
Running “connect:server” (connect) task
Waiting forever…
Started connect web server on http://localhost:9100

阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页