Changes

From SME Server
Jump to navigationJump to search
2 bytes added ,  19:21, 26 January 2023
Line 113: Line 113:  
  show users
 
  show users
   −
We can then set Mongo to force authenticaiotn when conneting.
+
We can then set Mongo to force authentication when connecting.
    
  nano /usr/lib/systemd/system/mongod.service.d/50koozali.conf
 
  nano /usr/lib/systemd/system/mongod.service.d/50koozali.conf
Line 132: Line 132:  
This is possible but we need to create a new file so we do not overwrite the original - otherwise yum/rpm will complain.
 
This is possible but we need to create a new file so we do not overwrite the original - otherwise yum/rpm will complain.
   −
Something like /etc/mongo/mongod.conf
+
Something like /etc/mongod/mongod.conf
    
Template fragments in  
 
Template fragments in  
   −
  /etc/e-smith/templates/etc/mongo/mongod.conf
+
  /etc/e-smith/templates/etc/mongod/mongod.conf
    
We can then amend the systemd overrride
 
We can then amend the systemd overrride
Line 146: Line 146:  
  [Service]
 
  [Service]
 
  Environment="OPTIONS=-f /etc/mongod/mongod.conf"
 
  Environment="OPTIONS=-f /etc/mongod/mongod.conf"
      
===Dump and restore===
 
===Dump and restore===

Navigation menu