Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
MongoDB
(view source)
Revision as of 10:48, 22 September 2020
515 bytes added
,
10:48, 22 September 2020
→Koozali SME v10
Line 81:
Line 81:
{{Warning box| Complete work in progress - here be Dragons!}}
{{Warning box| Complete work in progress - here be Dragons!}}
−
Use the above method to add the repo
+
+
===Install===
+
Use the above method to add the repo
and then:
yum --enablerepo=mongodb install mongodb-org
yum --enablerepo=mongodb install mongodb-org
Line 96:
Line 98:
systemctl {start|stop|restart} mongodb
systemctl {start|stop|restart} mongodb
+
+
===Vaporise or reinitialise the database===
+
+
{{Warning box| This will totally and utterly vaporise your data. Got a backup?? You have been warned}}
+
+
Remove the directory contents:
+
+
rm -rf /var/lib/mongo/*
+
+
Or remove the entire directory and recreate it with the correct ownership:
+
+
rm -rf /var/lib/mongo
+
mkdir -p /var/lib/mongo
+
chown -R mongod:mongod /var/lib/mongo
+
+
If you have a replicaset set in /etc/mongod.conf make sure you initiate it:
+
+
mongo --eval "printjson(rs.initiate())"
----
----
[[Category:Howto]]
[[Category:Howto]]
[[Category:Administration]]
[[Category:Administration]]
ReetP
Bureaucrats
,
Administrators (Semantic MediaWiki)
,
Curators (Semantic MediaWiki)
,
Administrators
877
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version