Visitas: 4
OBS:
- Usamos Debian Wheezy de 64 bits.
- Instalamos mongoDB 2.6.
Entramos a la consola y escribimos lo siguiente:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo aptitude update && sudo aptitude install mongodb-org -y && sudo aptitude clean && sudo aptitude autoclean
Volvemos a entrar a la consola y iniciamos el servidor mongoDB.
sudo service mongod start
Nos aparece lo siguiente por la pantalla:
[ ok ] Starting database: mongod apparently already running.
Ahora queremos visualizar el log, así que escribimos en la consola lo siguiente:
proyectosbeta@debianWheezy:~$ sudo tail -f /var/log/mongodb/mongod.log
Nos aparece lo siguiente por pantalla:
2014-07-31T11:51:34.349-0400 [initandlisten] preallocating a journal file /var/lib/mongodb/journal/prealloc.2
2014-07-31T11:51:37.006-0400 [initandlisten] File Preallocator Progress: 775946240/1073741824 72%
2014-07-31T11:51:38.815-0400 [FileAllocator] allocating new datafile /var/lib/mongodb/local.ns, filling with zeroes...
2014-07-31T11:51:38.815-0400 [FileAllocator] creating directory /var/lib/mongodb/_tmp
2014-07-31T11:51:38.841-0400 [FileAllocator] done allocating datafile /var/lib/mongodb/local.ns, size: 16MB, took 0.01 secs
2014-07-31T11:51:38.845-0400 [FileAllocator] allocating new datafile /var/lib/mongodb/local.0, filling with zeroes...
2014-07-31T11:51:38.859-0400 [FileAllocator] done allocating datafile /var/lib/mongodb/local.0, size: 64MB, took 0.013 secs
2014-07-31T11:51:38.862-0400 [initandlisten] build index on: local.startup_log properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "local.startup_log" }
2014-07-31T11:51:38.863-0400 [initandlisten] added index to empty collection
2014-07-31T11:51:38.865-0400 [initandlisten] waiting for connections on port 27017
2014-07-31T11:52:38.813-0400 [clientcursormon] mem (MB) res:36 virt:344
2014-07-31T11:52:38.813-0400 [clientcursormon] mapped (incl journal view):160
2014-07-31T11:52:38.813-0400 [clientcursormon] connections:0
Fuente: mondoDB