-
-
Save nax3t/c781791851bac04e399d2275405cead5 to your computer and use it in GitHub Desktop.
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 |
@ coltonbarry
Getting an error:
cbears:/workspace $ sudo apt-get update
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
cbears:/workspace $Any ideas?
Not sure, are you using the original version of c9 from here?
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
problem solved
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
same problem
how did you solved it??
please help
is this the same when using visual studio code?
thanks a million
Not working for me in c9. I keep getting the "Unable to correct problems, you have held broken packages."
2019-02-13T01:34:03.653+0000 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed
be sure to run ./mongod from ~ directory and leave it running before running node app.js
is this the same when using visual studio code?
installation instructions vary for operating system, see mongodb docs
Not working for me in c9. I keep getting the "Unable to correct problems, you have held broken packages."
I fixed it, you now have 4.0.6
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
All good just realised my password :))