Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
3.2.16, 3.4.0
-
None
-
None
-
ALL
Description
/etc/mongod.conf
systemLog:
|
destination: file
|
logAppend: true
|
path: /var/log/mongodb/mongod.log
|
storage:
|
dbPath: /var/lib/mongo
|
journal:
|
enabled: true
|
processManagement:
|
fork: true # fork and run in background
|
pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
|
net:
|
port: 27018
|
bindIp: 127.0.0.1 # Listen to local interface only, comment to listen on all interfaces.
|
security:
|
authorization: enabled
|
/etc/mongos.conf
systemLog:
|
destination: file
|
logAppend: true
|
path: /var/log/mongodb/mongod.log
|
processManagement:
|
fork: true # fork and run in background
|
pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
|
net:
|
port: 27017
|
bindIp: 127.0.0.1 # Listen to local interface only, comment to listen on all interfaces.
|
sharding:
|
configDB: rs0/192.168.56.101:27019
|
mongod launched via systemd: systemctl start mongod
mongos launched via shell: mongos -f /etc/mongos.conf
ps auxf
root 11295 0.0 0.2 105480 3976 ? Ss 16:46 0:00 /usr/sbin/sshd -D
|
root 6694 0.0 0.2 147840 5304 ? Ss 16:50 0:00 \_ sshd: root@pts/1
|
root 6697 0.0 0.1 115380 2096 pts/1 Ss 16:50 0:00 | \_ -bash
|
root 6867 0.0 0.4 173908 8504 pts/1 S+ 17:32 0:00 | \_ mongos -f /etc/mongos.conf
|
root 6868 0.0 0.1 173908 3652 ? Ss 17:32 0:00 | \_ mongos -f /etc/mongos.conf
|
root 6869 0.0 0.4 248692 8012 ? Sl 17:32 0:00 | \_ mongos -f /etc/mongos.conf
|