How to stop Meteor?

前端 未结 14 1134
执念已碎
执念已碎 2020-12-07 14:45

The only answer on this question I saw - go start another copy on the different port. Switching from one Meteor workspace to another Okay, I see that I can run another one o

相关标签:
14条回答
  • 2020-12-07 15:07

    In the terminal, I used: $ sudo killall -9 node (this kills all running node jobs)

    0 讨论(0)
  • 2020-12-07 15:08

    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
    
    0 讨论(0)
  • 2020-12-07 15:08

    When you are looking at the terminal with the unwanted meteor running just press Ctrl+C to turn off meteor.

    To run more applications side by side run on a different port with the --port option

    0 讨论(0)
  • 2020-12-07 15:10

    Actually, kill -9 kills meteor immediately, which is not a good idea. It's an emergency feature and should be applied only when regular kill (no signal specified) fails, as it prevents processes from running shutdown procedures.

    0 讨论(0)
  • 2020-12-07 15:13

    On OSX, go back to the term you opened to start meteor, and use CTRL+C to quit the process.

    0 讨论(0)
  • 2020-12-07 15:13

    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}'`
    
    0 讨论(0)
提交回复
热议问题