I am following some tutorials on how to work with Mongodb but they don't explain how to close the CLI. I usually just use "exit" but after running mongod it now does nothing, and if I try to leave by just closing the window I get a message saying "processes running in session". I get the same problem with the other gitbash window after running npm run dev (I think the "dev" part is just specific to what I do now?).
Asked
Active
Viewed 217 times
2 Answers
0
Normally you can press 'ctrl' + 'c' on your keyboard and it should stop the process running on your command line tool.
Have a look here thing might be more MongoDB specific help

Mihow Bogucki
- 26
- 3
-
Thanks. I ended up using ctrl + c but I don't know if that is the best thing to do, as the answer says there are proper was to wait it but none worked for me. – Tsabary Feb 21 '19 at 22:33
-1
The command to save a file in Vim and quit the editor is :wq . To save the file and exit the editor simultaneously, press Esc to switch to normal mode, type :wq and hit Enter .
Check this.

Ole Pannier
- 3,208
- 9
- 22
- 33

iSteven Zion
- 11
- 1
- 2