Skip to content

Instantly share code, notes, and snippets.

@Industrial
Created June 12, 2012 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Industrial/1014dc4231f55a392f5f to your computer and use it in GitHub Desktop.
Save Industrial/1014dc4231f55a392f5f to your computer and use it in GitHub Desktop.
tom-AOD255:tom ~/Dropbox/Websites/tomwieland.nl/code
$ mongo
The program 'mongo' is currently not installed. You can install it by typing:
sudo apt-get install mongodb-clients
tom-AOD255:tom ~/Dropbox/Websites/tomwieland.nl/code
$ sudo apt-get install mongodb-clients
[sudo] password for tom:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libboost-filesystem1.46.1 libboost-program-options1.46.1 libboost-system1.46.1 libboost-thread1.46.1 libpcrecpp0
The following NEW packages will be installed:
libboost-filesystem1.46.1 libboost-program-options1.46.1 libboost-system1.46.1 libboost-thread1.46.1 libpcrecpp0 mongodb-clients
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.6 kB/17.1 MB of archives.
After this operation, 41.2 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://nl.archive.ubuntu.com/ubuntu/ precise/main libpcrecpp0 i386 8.12-4 [16.6 kB]
Fetched 16.6 kB in 0s (77.5 kB/s)
Selecting previously unselected package libpcrecpp0.
(Reading database ... 199108 files and directories currently installed.)
Unpacking libpcrecpp0 (from .../libpcrecpp0_8.12-4_i386.deb) ...
Selecting previously unselected package libboost-system1.46.1.
Unpacking libboost-system1.46.1 (from .../libboost-system1.46.1_1.46.1-7ubuntu3_i386.deb) ...
Selecting previously unselected package libboost-filesystem1.46.1.
Unpacking libboost-filesystem1.46.1 (from .../libboost-filesystem1.46.1_1.46.1-7ubuntu3_i386.deb) ...
Selecting previously unselected package libboost-program-options1.46.1.
Unpacking libboost-program-options1.46.1 (from .../libboost-program-options1.46.1_1.46.1-7ubuntu3_i386.deb) ...
Selecting previously unselected package libboost-thread1.46.1.
Unpacking libboost-thread1.46.1 (from .../libboost-thread1.46.1_1.46.1-7ubuntu3_i386.deb) ...
Selecting previously unselected package mongodb-clients.
Unpacking mongodb-clients (from .../mongodb-clients_1%3a2.0.4-1ubuntu2_i386.deb) ...
Processing triggers for man-db ...
Setting up libpcrecpp0 (8.12-4) ...
Setting up libboost-system1.46.1 (1.46.1-7ubuntu3) ...
Setting up libboost-filesystem1.46.1 (1.46.1-7ubuntu3) ...
Setting up libboost-program-options1.46.1 (1.46.1-7ubuntu3) ...
Setting up libboost-thread1.46.1 (1.46.1-7ubuntu3) ...
Setting up mongodb-clients (1:2.0.4-1ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
tom-AOD255:tom ~/Dropbox/Websites/tomwieland.nl/code
$ mongo
MongoDB shell version: 2.0.4
connecting to: test
Tue Jun 12 15:03:59 Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84
exception: connect failed
tom-AOD255:tom ~/Dropbox/Websites/tomwieland.nl/code
$ sudo apt-get install mongodb-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
mongodb-server
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,265 kB of archives.
After this operation, 10.3 MB of additional disk space will be used.
Selecting previously unselected package mongodb-server.
(Reading database ... 199164 files and directories currently installed.)
Unpacking mongodb-server (from .../mongodb-server_1%3a2.0.4-1ubuntu2_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up mongodb-server (1:2.0.4-1ubuntu2) ...
mongodb start/running, process 18021
tom-AOD255:tom ~/Dropbox/Websites/tomwieland.nl/code
$ mongo
MongoDB shell version: 2.0.4
connecting to: test
Tue Jun 12 15:04:40 Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84
exception: connect failed
tom-AOD255:tom ~/Dropbox/Websites/tomwieland.nl/code
$ sudo service mongodb start
mongodb start/running, process 18054
tom-AOD255:tom ~/Dropbox/Websites/tomwieland.nl/code
$ mongo
MongoDB shell version: 2.0.4
connecting to: test
Tue Jun 12 15:04:57 Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84
exception: connect failed
tom-AOD255:tom ~/Dropbox/Websites/tomwieland.nl/code
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment