mongodb:mongod_yaml
mongod.confのYAML版
mongodbの設定ファイル(mongod.conf)はYAMLになっているが、YUMでインストールした場合は従来どおりの設定ファイルが付属してくる。 標準設定をYAMLに置き換えると、以下になる。 ※engineをwiredTigerに設定。
systemLog:
destination: file
path: "/var/log/mongodb/mongod.log"
logAppend: true
storage:
dbPath: "/var/lib/mongo"
engine: wiredTiger
wiredTiger:
collectionConfig:
blockCompressor: zlib
journal:
enabled: true
processManagement:
fork: true
pidFilePath: "/var/run/mongodb/mongod.pid"
net:
bindIp: 127.0.0.1
port: 27017
mongodb/mongod_yaml.txt · 最終更新: 2025/02/16 13:53 by 127.0.0.1
