查看mongodb所有命令的方式
1. 在shell中运行db.listCommands()
2. 或者在驱动程序中运行list-Commands
3.在管理员接口 http://localhost:28107/_commands查看
停止Mongodb
1. 直接kill命令,或者ctrl+c
2.在admin数据库下使用,shutdownServer()来关闭
>>>use admin
>>>db.shutdownServer()
查看mongodb所有命令的方式
1. 在shell中运行db.listCommands()
2. 或者在驱动程序中运行list-Commands
3.在管理员接口 http://localhost:28107/_commands查看
停止Mongodb
1. 直接kill命令,或者ctrl+c
2.在admin数据库下使用,shutdownServer()来关闭
>>>use admin
>>>db.shutdownServer()