Changes

From SME Server
Jump to navigationJump to search
672 bytes added ,  15:09, 27 October 2021
Line 98: Line 98:     
  systemctl {start|stop|restart} mongodb
 
  systemctl {start|stop|restart} mongodb
 +
 +
 +
=== USing keys===
 +
 +
config setprop mongod service status enabled
 +
 +
Minimal config I use for Rocket.Chat
 +
 +
grep '^[[:blank:]]*[^[:blank:]#;]' /etc/mongod.conf
 +
 +
systemLog:
 +
  verbosity: 0
 +
  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
 +
  timeZoneInfo: /usr/share/zoneinfo
 +
net:
 +
  port: 27017
 +
  bindIp: 127.0.0.1  # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.
 +
replication:
 +
  replSetName: rs0
    
===Vaporise or reinitialise the database===
 
===Vaporise or reinitialise the database===

Navigation menu