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  

猜你喜欢

转载自blog.csdn.net/weixin_47151643/article/details/109020873
elk