转载:Mongodb start
Mongodb 操作
Start MongoDB
The MongoDB instance stores its data files in the /var/lib/mongo and its log files in /var/log/mongo, and run using themongod user account. If you change the user that runs the MongoDB process, you must modify the access control rights to the/var/lib/mongo and /var/log/mongo directories.
Start the mongod process by issuing the following command (as root or with sudo):
service mongod start
You can verify that the mongod process has started successfully by checking the contents of the log file at/var/log/mongo/mongod.log.
You may optionally ensure that MongoDB will start following a system reboot by issuing the following command (with root privileges:)
chkconfig mongod on
Stop MongoDB
Stop the mongod process by issuing the following command (as root or with sudo):
service mongod stop
Restart MongoDB
You can restart the mongod process by issuing the following command (as root or with sudo):
service mongod restart
url:http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/
最新文章
- 总结:视频播放的四种实现方案(Native)
- 【jq】c#零基础学习之路(5)自己编写简单的Mylist<;T>;
- js:方法3. 对象
- HDU 4471 矩阵快速幂 Homework
- xcode7 __weak 导致报错 is unavailable
- Auto push git tag
- @ExceptionHandler
- C#获取相对路径的方法
- php 快速fork出指定个子进程
- magento寄存器的使用
- 201521123063 《Java程序设计》 第12周学习总结
- Python中装饰器的用法
- MySQL 笔记整理(9) --普通索引和唯一索引,应该怎么选择?
- 详述 hosts 文件的作用及修改 hosts 文件的方法
- 突破内网限制上网(ssh+polipo)
- SQL Server -- stuff 函数
- perfmon——使用windows系统自带的性能监视器监控进程信息
- 代码调试--自定义一个简单的debug函数
- 使用 pkg 打包分发 nodejs 应用
- linux修改文件所属用户和用户组