Installing MongoDB with Yay and Briefly Falling into a Pitfall with the Configuration File

2 min

language: ja bn en es hi pt ru zh-cn zh-tw

Hello, I'm incompetent.

MongoDB can be installed with the minimum below. I tried with other packages, but compilation failed, so I bothered to install it as a minimal environment.

yay -S mongodb-bin

And then,

I messed with the configuration file and it stopped working, so I'm writing this down as a memo.

# mongod.conf

# for documentation of all options, see:
#   http://docs.mongodb.org/manual/reference/configuration-options/

# Where and how to store data.
storage:
  dbPath: /var/lib/mongodb

#  engine:
#  wiredTiger:

# where to write logging data.
systemLog:
  destination: file
  logAppend: true
  path: /var/log/mongodb/mongod.log

# network interfaces
net:
  port: 27017
  bindIp: 127.0.0.1, 192.168.10.xxx


# how the process runs
processManagement:
  timeZoneInfo: /usr/share/zoneinfo
  pidFilePath: /var/run/mongodb/mongod.pid

security:
   authorization: disabled


#operationProfiling:

#replication:

#sharding:

## Enterprise-Only Options:

#auditLog:

I've set authorization: disabled for a temporary test environment, but absolutely do not do this.

I got stuck twice when I added the pidFilePath setting.

It shouldn't be PidFilePath or similar, but "pidFilePath".
Seriously, if that's the case, just let me configure everything in lowercase from the start...

Related Posts