-bash-4.2$ cat /etc/mongod.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: /data/mongoDB/log/mongod.log
# Where and how to store data.
storage:
dbPath: /data/mongoDB/mongo
journal:
enabled: true
# engine:
# wiredTiger:
# how the process runs
processManagement:
fork: true # fork and run in background
pidFilePath: /data/mongoDB/mongod.pid #location of pidfile
timeZoneInfo: /usr/share/zoneinfo
# network interfaces
net:
port: 27017
bindIp: 0.0.0.0 # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.
#security:
security:
authorization: enabled
#operationProfiling:
#replication:
#sharding:
## Enterprise-Only Options
#auditLog:
#snmp:
-bash-4.2$ cd /data
-bash-4.2$ ll
total 20
drwx------. 2 mongod mongod 16384 Nov 11 23:27 lost+found
drwx------. 4 mongod mongod 4096 Jan 11 11:49 mongoDB
-bash-4.2$ cd mongoDB
-bash-4.2$ ll
total 28
drwx------. 2 mongod mongod 4096 Jan 11 11:49 log
drwx------. 4 mongod mongod 16384 Jan 11 11:56 mongo
-rw-r--r--. 1 mongod mongod 862 Jun 29 2021 mongod.conf.bkpjab11
-rw-r--r--. 1 mongod mongod 6 Jan 11 11:49 mongod.pid
-bash-4.2$ mongod --version
db version v4.2.6
git version: 20364840b8f1af16917e4c23c1b5f5efd8b352f8
OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
allocator: tcmalloc
modules: none
build environment:
distmod: rhel70
distarch: x86_64
target_arch: x86_64
=====================================
-bash-4.2$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
1 Like