yum install mongodb-server
systemctl start mongod
Install client and verify it can connect to the server
yum install mongodb
mongo
You should now be in the mongo shell - test you can save and retrieve an object
db.test.save( { a: 1 } )
db.test.find()
Should display something like this:
{ "_id" : ObjectId("525f2fb01ec8e4af43c529c0"), "a" : 1 }
No comments:
Post a Comment