1:操作系统信息

2:yum命令查看MongoDB的包信息

3:配置yum源

#vi /etc/yum.repos.d/10gen.repo

4:查看mongoDB的服务器包的信息

5:安装MongoDB的服务器端和客户端工具

#yum install mongo-10gen-server

#yum install mongo-10gen

卸载:

#yum -y remove mongo-10gen-server

6:启动MongoDB服务(以后有更新了,停掉mongodb,执行#yum update mongo-10gen mongo-10gen-server 即可)

#service mongod start

7:MongoDB配置文件

# mongo.conf

#where to log
logpath=/var/log/mongo/mongod.log logappend=true # fork and run in background
fork = true #port = dbpath=/var/lib/mongo # location of pidfile
pidfilepath = /var/run/mongodb/mongod.pid # Disables write-ahead journaling
# nojournal = true # Enables periodic logging of CPU utilization and I/O wait
#cpu = true # Turn on/off security. Off is currently the default
#noauth = true
#auth = true # Verbose logging output.
#verbose = true # Inspect all client data for validity on receipt (useful for
# developing drivers)
#objcheck = true # Enable db quota management
#quota = true # Set oplogging level where n is
# =off (default)
# =W
# =R
# =both
# =W+some reads
#diaglog = # Ignore query hints
#nohints = true # Disable the HTTP interface (Defaults to localhost:).
#nohttpinterface = true # Turns off server-side scripting. This will result in greatly limited
# functionality
#noscripting = true # Turns off table scans. Any query that would do a table scan fails.
#notablescan = true # Disable data file preallocation.
#noprealloc = true # Specify .ns file size for new databases.
# nssize = <size> # Accout token for Mongo monitoring server.
#mms-token = <token> # Server name for Mongo monitoring server.
#mms-name = <server-name> # Ping interval for Mongo monitoring server.
#mms-interval = <seconds> # Replication Options # in replicated mongo databases, specify here whether this is a slave or master
#slave = true
#source = master.example.com
# Slave only: specify a single database to replicate
#only = master.example.com
# or
#master = true
#source = slave.example.com

最新文章

  1. JVM基础知识
  2. maven2 com.jhlabs.imaging 01012005 maven安装jar包imaging命令
  3. [译]Mongoose指南 - 验证
  4. customTextbox
  5. sql数据库批量替换dedecms内容关键字
  6. hdu 5925 Coconuts 离散化+dfs
  7. Kafka操作
  8. Kettle中通过触发器方式实现数据 增量更新
  9. TODO管理工具TaskWarrior (跨平台C++代码)
  10. 使用Java打印杨辉三角
  11. http缓存浅谈
  12. 初学node.js,安装nodemon,学习debug模式,安装cpu-stat
  13. 【搬运工】修改mysql数据库的时区
  14. 『TensorFlow』流程控制之tf.identity
  15. java语言规范,main方法必须声明为public
  16. 关于更改ListBox的ItemsPanel样式
  17. Java基础-语法定义
  18. xml配置sql语句
  19. 【刷题】BZOJ 2125 最短路
  20. 初识thinkphp(3)

热门文章

  1. java_线程的几种状态
  2. 白光LED驱动方案的选择 TPS61043
  3. PHP自学之路---雇员管理系统(1)
  4. cmake和make区别
  5. java基础学习总结——static关键字
  6. mORMot
  7. jQuery2.0应用开发:SSH框架整合jQuery2.0实战OA办公自己主动化(VSS、operamasks-UI框架)
  8. GeoHash核心原理解析及java代码实现(转)
  9. 【IUML】支持向量机SVM[续]
  10. 我所遭遇过的游戏中间件---Redux