stop all instances of node.js server

前端 未结 16 1755
我在风中等你
我在风中等你 2020-11-28 17:23

This is my first time working with Node.js and I ran into this problem:

I have started a Node server through the plugin of an IDE. Unfortunately, I cannot use the ID

16条回答
  •  遥遥无期
    2020-11-28 18:03

    Linux

    To impress your friends

    ps aux | grep -i node | awk '{print $2}' | xargs  kill -9
    

    But this is the one you will remember

    killall node
    

提交回复
热议问题