By flameuzumo
This is rather a newbie question. Bear with me. After I install mongodb on debian/centos how do I get the mongo_url so I can connect my app to my mongodb?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
But your code is separated from the database. Meteor.js just installs MongoDB as part of it’s setup.
From what I can see, it’s installed on port 3001
.
I don’t know what mongo_url
is, but I guess it’s the configuration parameter in Meteor.js, so in that case, it would be mongodb://localhost:27017/myproject
or however you have setup your MongoDB - so if you used authentication in the setup, your url changes to mongodb://username:password@localhost:27017/myproject
.
You would probably find much better help in the forums of Meteor: https://forums.meteor.com/
Hi @flameuzumo
MongoDB is by default listening on localhost
port 27017
, so your “url” is normally:
localhost:27017
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.