9

I'm running terminal in webstorm. I try running node --harmony app.js and says my koa app.listen() is already running.

So I try to hunt and see what node processes are running via the command ps aux | grep node

I see a couple results:

myUserName         897   0.0  0.0  3083844    160 s000  T    11:15AM   0:00.32 node --harmony app.js
myUserName        1935   0.0  0.0  2441988    676 s000  S+    1:33PM   0:00.00 grep node

I try to kill 897 by doing a kill 897 or pkill 897 but it is still running. How do I get that to kill!!!??

PositiveGuy
  • 11,583
  • 13
  • 50
  • 102

2 Answers2

16

kill -9 897

kill command sends a signal to the given process, but unless you use -9 which sends the SIGKILL signal, the process is allowed to attempt to kill itself.

Samuel
  • 15,583
  • 5
  • 54
  • 70
1

fuser -k 4060/tcp

where 4060 is the port on which your node server is running.

kiran Sp
  • 113
  • 7