yum安装MangoDB

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 = 27017

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
#   0=off (default)
#   1=W
#   2=R
#   3=both
#   7=W+some reads
#diaglog = 0

# Ignore query hints
#nohints = true

# Disable the HTTP interface (Defaults to localhost:27018).
#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

yum安装MangoDB,布布扣,bubuko.com

时间: 2024-11-05 12:26:03

yum安装MangoDB的相关文章

centos7.x之yum安装zabbix

1.安装LAMP #关闭防火墙方便测试 yum install epel-release -y systemctl stop firewalld.service systemctl disable firewalld.service setenforce 0 #安装httpd yum install httpd systemctl start httpd.service  systemctl enable httpd.service #安装数据库5.6 wget http://dev.mysql

centos yum安装ftp 及解决vsftp错误500 OOPS: cannot change directory:/home/**

centos yum安装ftp 及解决vsftp错误500 OOPS: cannot changedirectory:/home/**   1.查看服务器有没有安装ftp包 rpm -qa |grep vsftp 2.yum  安装 yum -y install vsftpd 3.启动vsftp的服务 service vsftpd start 4.关闭防火墙 service iptables stop 5.测试匿名访问 修改配置文件 vsftpd.conf [[email protected]

yum安装telnet服务

1.查看有无安装telnet [[email protected] ~]# rpm -qa |grep telnet 2.查看yum 源 [[email protected] ~]# yum list |grep telnet telnet.x86_64                              1:0.17-48.el6              @base telnet-server.x86_64                       1:0.17-48.el6    

使用CentOS的DVD制作公司内部YUM安装源

本文链接:http://blog.csdn.net/kongxx/article/details/43821421 这里假定使用有两台机器来模拟,一台机器做YUM安装源,另外一台机器作为测试机. 1. 首先我们使用http的源来作为YUM的安装源,所以我们需要首先确保机器已经安装了apache,如果没有安装的话可以使用 "sudo yum install httpd" 来安装.安装完可以使用 "sudo service httpd start" 来启动服务. 2.

CentOS中yum安装软件时报错:No package XXX available

yum 安装软件时,报错:No package XXX available. [[email protected] ~]# yum -y install redis Loaded plugins: fastestmirror No package redis available. Nothing to do 配置一台CentOS 7.x或RHEL 7.x的系统使用Fedora EPEL  repos和第三方软件包安装各种软件包.请注意,这些软件包没有正式获得任何的CentOS或Red Hat的支

centos 6.9 x64 yum安装PHP 7.1.8

centos 6.9 x64 yum安装PHP 7.1.8 安装源 yum install epel-release rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm 根据你的需要安装PHP的组件,下面我就安装所有的了. yum install php71w php71w-mysql php71w-odbc php71w-common php71w-embedded php71w-pgsql php71w-xml  php71w-lda

CentOS 7 yum安装Zabbix

CentOS 7 yum安装Zabbix 一.Zabbix简介 zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案.zabbix能监视各种网络参数,保证服务器系统的安全运营:并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题. 下面是Centos7上yum安装zabbix的步骤. 二.Zabbix安装 本文档在同一台机器上安装了zabbix-server 和zabbix-agent 自己监控自己. 1.配置LAMP 参照下面的链接 Centos

Centos7.0 Ganglia监控 Yum 安装

简介: Ganglia由gmond.gmetad和gweb三部分组成. 1.服务器端(指的是汇总收集的监控数据机器):主要安装 gmetad  与 gweb :如果安装同时安装了 gmond ,服务        器端的这台机器监控数据也可以被收集. 2.客户端(指的是收集监控数据的机器):主要安装 gmond 即可. 3.显示端(指的就是一个web站点):主要安装 gweb. 实验环境: 1.centos 7.0 2.Ganglia 5.7 安装方式: 1.yum install  gangl

网络yum 安装 httpd 出现的问题Could not reliably determine the server&#39;s fully qualified domain name

Could not reliably determine the server's fully qualified domain name 在使用网络yum源安装httpd的时候出现了上面的报错,进入配置文件httpd.conf [[email protected] ~]# cd /etc//httpd/conf [[email protected] conf]# ls httpd.conf  magic [[email protected] conf]#vim httpd.conf 276 #