Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you close all connections to MongoDB from the Mongo Shell?

Tags:

mongodb

Can you close all connections to MongoDB from the Mongo Shell? If so, what is the proper command?

Thank you.

like image 234
Aaron Greenlee Avatar asked Feb 16 '11 00:02

Aaron Greenlee


1 Answers

There is no direct way to block connections from the shell.

However, if you were trying to block writes for a backup, then you can do that.

What are you trying to accomplish?

like image 95
user602502 Avatar answered Sep 18 '22 10:09

user602502