Questions tagged «launchd»

9
在Mac OS X上停止mongod的一种干净方法是什么?
我正在运行mongo 1.8.2,并尝试查看如何在Mac上将其干净关闭。 在我们的ubuntu服务器上,我可以使用以下命令从mongo shell干净地关闭mongo: > use admin > db.shutdownServer() 但是在我的Mac上,它不会杀死mongod进程。输出显示它“应该”关闭,但是当我ps -ef | grep mongo它向我展示了一个活跃的过程。另外,我仍然可以打开mongo shell并查询我的数据库,就像它从未关闭过一样。 我的db.shutdownServer()在本地的输出是: MongoDB shell version: 1.8.2 connecting to: test > use admin switched to db admin > db.shutdownServer() Tue Dec 13 11:44:21 DBClientCursor::init call() failed Tue Dec 13 11:44:21 query failed : admin.$cmd { shutdown: 1.0 …
84 macos  mongodb  launchd 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.