§2023-07-25
This is a test replicationSet running mongod Version 7.0.0-rc8, replSetName: "odroid01".
Machines Name | OS | IP | mac Address |
---|---|---|---|
x8664Arch.yushei.com.tw | x86_64 Arch Linux | 192.168.2.132 | f8:0f:41:a2:43:e2 |
n2Jammy.yushei.com.tw | arm64buntu Jammy | 192.168.2.177 | 00:1e:06:42:0f:49 |
hc4Jammy.yushei.com.tw | arm64 Ubuntu Jammy | 192.168.2.195 | 00:1e:06:49:00:c5 |
¶ /etc/mongodb.conf
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /opt/mongoDB/log/mongod.log
# Where and how to store data.
storage:
dbPath: /opt/mongoDB/data
# network interfaces
net:
port: 27017
# bindIp: ysubutun.chingyen.com.tw
bindIpAll: true # default is Flase, and mutual exclusive with bindIP.
# ssl param is inside net:
# ssl:
# security
security:
# authorization: enabled
keyFile: /home/mongoDbKey/odroid01-keyfile
# clusterAuthMode: x509
#operationProfiling:
# replicationSet
replication:
replSetName: "odroid01"
#sharding:
## Enterprise-Only Options
#auditLog:
#snmp: