Last active
July 21, 2020 08:16
-
-
Save nax3t/c781791851bac04e399d2275405cead5 to your computer and use it in GitHub Desktop.
Code for https://youtu.be/b089GmAvUyQ MongoDB c9.io Install Instructions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
killall mongod | |
sudo apt-get purge -y mongodb-org* | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 | |
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list | |
sudo apt-get update | |
sudo apt-get install -y mongodb-org | |
rm -rf mongod | |
echo "mongod --dbpath=data --nojournal" > mongod | |
chmod a+x mongod |
any help?
MongoDB shell version v3.6.10
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
2019-02-13T01:34:03.653+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2019-02-13T01:34:03.653+0000 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:263:13
@(connect):1:6
exception: connect failed
I have the same issue as your how did you fix it?
Is there a resource for going through this if using Git Bash,?
Thanks! Works well for me
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
be sure to run ./mongod from ~ directory and leave it running before running node app.js
installation instructions vary for operating system, see mongodb docs
I fixed it, you now have 4.0.6