摘要: 启动和停止MongoDB1、从命令行启动:从mongod启动。前面已经介绍过了。通过mongod --help可以查看其它的配置。2、配置文件:通过-f 或者--config 指定配置文件。>mongod --config ~/.mongodb.conf配置文件:#Start MongoDB as a daemon on port 5586port=5586fork=truelogpath=mongodb.log3、停止mongodb:服务器作为前台进程运行早终端——ctrl-ckill -2 10014(PID)、kill 10014db.shutdownServer();监控http 阅读全文
posted @ 2013-05-02 17:08 lucyawei 阅读(162) 评论(0) 推荐(0) 编辑