Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to restart Meteor

Tags:

shell

meteor

If I close the browser tab and press Ctrl + Z to exit the current running meteor process, how do I start meteor again to restart the previous project?

I get the following error:

$ ~/current/meteor/project meteor

meteor Can't listen on port 3000. Perhaps another Meteor is running?

Running two copies of Meteor in the same application directory will not work. If something else is using port 3000, you can specify an alternative port with --port .

But specifying another port doesn't change the error message.

like image 691
Leke Avatar asked Oct 21 '12 15:10

Leke


2 Answers

in Linux CTRL+Z suspends the program and bg command sends it to background. You can type fg command to get back to the program.

After getting back to program, you can close it by CTRL+C, then simply start it again by meteor command.

like image 175
YAAK Avatar answered Oct 02 '22 23:10

YAAK


You can also use the sudo killall -9 node command to stop all meteor projects and then meteor to start the one you want in your folder of choice.

like image 26
efader Avatar answered Oct 03 '22 00:10

efader