ELK启动报错

Running “connect:server” (connect) task
Waiting forever…
Fatal error: Port 9100 is already in use by another process.
npm ERR! code ELIFECYCLE

[root@node1 elasticsearch-head]# npm run start & 
[2] 12761
[root@node1 elasticsearch-head]# 

> elasticsearch-head@0.0.0 start /usr/local/src/elasticsearch-head
> grunt server

Running "connect:server" (connect) task
Waiting forever...
Fatal error: Port 9100 is already in use by another process.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! elasticsearch-head@0.0.0 start: `grunt server`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the elasticsearch-head@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-09-15T08_40_32_232Z-debug.log

这边提示是port 9100被占用,是之前运行的进程没有杀掉

'//我们筛选出进程id 并杀掉从新启动即可'
[root@node1 elasticsearch-head]# lsof -i :9100
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
grunt   11981 root   12u  IPv4  73972      0t0  TCP *:jetdirect (LISTEN)

[root@node1 elasticsearch-head]# kill -9 11981

[root@node1 elasticsearch-head]# npm run start & 

[root@node1 elasticsearch-head]# netstat -ntap | grep 9100
tcp        0      0 0.0.0.0:9100            0.0.0.0:*               LISTEN      12817/grunt  
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值