芒果数据库配置文件
2018-07-20 11:28
260 查看
配置文件1
目录介绍
/data/wyd/mongodb下的目录内容如下
backup(备份) log(日志) pid(pid文件) script shard-a-primary(数据库目录)
cacheSize是指系统分配给mongod用的内存,比如你系统有三十G内存,你可以分配二十四G内存给Mongodb
配置文件说明参考
https://blog.csdn.net/jianlong727/article/details/53484440
启动
指定不一样的pid和端口这样就可以起启多个不一样的进程
线上配置文件二
启动
/usr/local/mongodb/bin/mongod -f /usr/local/mongodb/conf/mongodb.conf
线上配置文件三
# mongod.conf systemLog: destination: file logAppend: true storage: journal: enabled: true directoryPerDB: true engine: wiredTiger wiredTiger: engineConfig: cacheSizeGB: 2 directoryForIndexes: true indexConfig: prefixCompression: true processManagement: fork: true net: port: 27017
目录介绍
/data/wyd/mongodb下的目录内容如下
backup(备份) log(日志) pid(pid文件) script shard-a-primary(数据库目录)
cacheSize是指系统分配给mongod用的内存,比如你系统有三十G内存,你可以分配二十四G内存给Mongodb
配置文件说明参考
https://blog.csdn.net/jianlong727/article/details/53484440
启动
numactl --interleave=all mongod -f /etc/mongod.conf \ --dbpath /data/wyd03/mongodbard-a-primary \ --logpath /data/wyd03/mongodb/logard-a-primary.log \ --pidfilepath /data/wyd03/mongodb/pidard-a-primary.pid --port 27021
指定不一样的pid和端口这样就可以起启多个不一样的进程
线上配置文件二
dbpath=/data/mongodb/db logpath=/data/mongodb/logs/mongodb.log bind_ip=127.0.0.1 port=27017 fork=true nohttpinterface=true auth=true
启动
/usr/local/mongodb/bin/mongod -f /usr/local/mongodb/conf/mongodb.conf
线上配置文件三
systemLog: quiet: false logAppend: true destination: file path: /data/mongodb/logs/mongod.log storage: dbPath: /data/mongodb/db journal: enabled: true engine: wiredTiger wiredTiger: engineConfig: cacheSizeGB: 16 indexConfig: prefixCompression: true processManagement: fork: true net: bindIp: 127.0.0.1 port: 27017 security: authorization: enabled
相关文章推荐
- 关于数据库配置文件中配置密文的原理(java)
- quartz 定时调度持久化数据库配置文件
- DOM4J 读取XML配置文件进行数据库连接
- 根据hibernate配置文件生成数据库建表脚本
- 2. 数据库文件配置与简单操作 Model / M()
- [更新]一份包含: 采用RSA JWT(Json Web Token, RSA加密)的OAUTH2.0,HTTP BASIC,本地数据库验证,Windows域验证,单点登录的Spring Security配置文件
- 使用XML作为项目的配置文件使用,并解析之,获得数据作为链接数据库的参数
- 单例模式获取连接数据库配置文件
- 数据库连接 properties文件配置
- .Net配置文件中的数据库连接字符串使用
- spring 引入数据库配置文件
- JDBC实例--通过连接工具类DBUtil +配置文件来获取连接数据库,方便又快捷
- Spring4.1使用c3p0加载配置文件连接数据库,Access denied for user 'root'@'localhost' 错误!
- 从properties配置文件中连接数据库
- 数据库配置文件的读取
- [java][spring]取得通过配置文件和注解注入的bean、取得当前数据库连接、取得ApplicationContext的方法
- 编写一工具栏,完成数据库的连接,并将数据库的信息写到配置文件中。
- 虚拟机映射端口及修改数据库配置文件
- discuz数据库迁移,改密码后,相关配置文件修改
- 一个根据配置文件对数据库进行增删改查的三层架构解决方法