An asteroid on a trajectory to impact Earth could not be shot down in the last few minutes or even hours before impact. No known weapon system could stop the mass because of the velocity at which it travels – an average of 12 miles per second.
I use this command:
kill -9 `ps ax | grep node | grep meteor | awk '{print $1}'`
Or, I run this if I'm on my local machine to kill remote processes:
ssh [user]@[server] <<'ENDSSH'
kill -9 `ps ax | grep node | grep meteor | awk '{print $1}'`
exit
ENDSSH
On OSX, go back to the term you opened to start meteor, and use CTRL+C to quit the process.
if Meteor is running on :3000 port:
kill -9 $(lsof -i :3000 -t);
Similar to Fernando's response, if you're on OSX you can quit the processes node
and mongod
using Activity Monitor.
quitting node
will stop the server. The database will still be running and accepting incoming connections, so quitting mongod
will turn off the database.
Enter command "Ctrl + C" on the terminal where the meteor process is running. This is the easiest way to kill the process in both Mac and Ubuntu. Not sure of Windows though.
Happy Coding!
In my case (Ubuntu 11.10) I open the System Monitor and kill manually the node
and mongod
processes.
Of course you can use also the terminal and kill these processes knowing their PID's.
An edit to John Devor's (accepted) answer: if you're editing your code with Atom, his command may kill the editor instances:
$ ps ax | grep node | grep meteor
19312 pts/2 Sl+ 0:16 /home/teo/.meteor/packages/meteor-tool/.1.1.4.e4elpj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node /home/teo/.meteor/packages/meteor-tool/.1.1.4.e4elpj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/main.js
19541 pts/2 Sl+ 0:02 /home/teo/.meteor/packages/meteor-tool/.1.1.4.e4elpj++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/bin/node /home/teo/meteor/beari/dist/.meteor/local/build/main.js
24438 ? Sl 0:00 /usr/share/atom/atom --no-deprecation /home/teo/.atom/packages/linter-jshint/node_modules/jshint/bin/jshint --reporter /home/teo/.atom/packages/linter-jshint/node_modules/jshint-json/json.js --filename /home/teo/meteor/beari/beari.js -
Better to use a command like:
kill -9 `ps ax | grep node | grep meteor | grep -v atom | awk '{print $1}'`
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With