Changes

From SME Server
Jump to navigationJump to search
825 bytes added ,  17:02, 15 September 2020
no edit summary
Line 1: Line 1:  
== How to install MongoDB 4.0 ==
 
== How to install MongoDB 4.0 ==
 +
 +
{{Note box| All info is based on SME Server 9 only but I have just started to test on v10 - see notes below}}
    
=== Install Official Repository ===
 
=== Install Official Repository ===
 +
 +
This should work for every version of Koozali SME
 +
 +
You may need to change the mongodb version as required
 +
 
  db yum_repositories set mongodb repository \
 
  db yum_repositories set mongodb repository \
                 BaseURL https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/4.0/x86_64/ \
+
                 BaseURL https://repo.mongodb.org/yum/redhat/\$releasever/mongodb-org/4.0/$basearch/ \
 
                 EnableGroups no \
 
                 EnableGroups no \
 
                 GPGCheck yes \
 
                 GPGCheck yes \
Line 69: Line 76:     
Mongo should come up on boot.
 
Mongo should come up on boot.
 +
 +
 +
==Koozali SME v10==
 +
 +
{{Warning box| Complete work in progress - here be Dragons!}}
 +
Use the above method to add the repo
 +
 +
yum --enablerepo=mongodb install mongodb-org
 +
 +
Mongo will automatically create a symlink so currently there is no way to enable/disable it apart from manually. Once Koozali SME has some more systemd tools we can use DB keys etc.
 +
 +
Created symlink from /etc/systemd/system/multi-user.target.wants/mongod.service to /usr/lib/systemd/system/mongod.service
 +
 +
To enable/disable this just use:
 +
 +
systemctl {en|dis}able mongodb
 +
 +
And to start stop
 +
 +
systemctl {start|stop|restart} mongodb
    
----
 
----
 
[[Category:Howto]]
 
[[Category:Howto]]
 
[[Category:Administration]]
 
[[Category:Administration]]

Navigation menu