Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mango database configuration file

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Profile 1

# mongod.confsystemLog: destination: file logAppend: truestorage: journal: enabled: true directoryPerDB: true engine: wiredTiger wiredTiger: engineConfig: cacheSizeGB: 2 directoryForIndexes: true indexConfig: prefixCompression: trueprocessManagement: fork: truenet: port: 27017

Introduction to catalogue

The requested URL/data/wyd/mongodb was not found on this server.

backup log pid script shard-a-primary

cacheSize refers to the memory allocated by the system to mongod. For example, if your system has 30 gigabytes of memory, you can allocate 24 gigabytes of memory to Mongodb.

Profile Details Reference

https://blog.csdn.net/jianlong727/article/details/53484440

Mongodb Memory Cache Size Configuration

http://www.jyguagua.com/? p=3248

start

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

Specify different pid and port so that you can start multiple different processes

Online Profile II

dbpath=/data/mongodb/dblogpath=/data/mongodb/logs/mongodb.logbind_ip=127.0.0.1port=27017fork=truenohttpinterface=trueauth=true

start

/usr/local/mongodb/bin/mongod -f /usr/local/mongodb/conf/mongodb.conf

Online Profile III

systemLog: quiet: false logAppend: true destination: file path: /data/mongodb/logs/mongod.logstorage: dbPath: /data/mongodb/db journal: enabled: true engine: wiredTiger wiredTiger: engineConfig: cacheSizeGB: 16 indexConfig: prefixCompression: trueprocessManagement: fork: truenet: bindIp: 127.0.0.1 port: 27017security: authorization: enabled

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report