How to kill an open process on node.js?

前端 未结 5 1612
滥情空心
滥情空心 2020-12-07 16:53

I\'m trying to set up a build-system for Node.js on sublime, so I can press F7 to call \"node\" on the openned file. The problem is that the process is then open forever, so

5条回答
  •  庸人自扰
    2020-12-07 17:38

    If you want to kill all processes than:

    sudo killall -9 node
    

    If you want to kill process on selected port than:

    sudo kill sudo lsof -t -i:3100 
    

    That was port 3100

提交回复
热议问题