linux - If I installed Mongo through apt-get, how do I update it? -
it seems gave me 1.4.4 not latest.
is normal? want 1.6. i'm afraid if apt-get uninstall, bad things happen.
i'd recommend using official ubuntu , debian packages ...
http://www.mongodb.org/display/docs/ubuntu+and+debian+packages
that'll make sure you'll latest stable version. if use on ubuntu (for example) mongodb install /var/lib/mongodb/ (instead of /data/db/)
so, if data in /var/lib/mongodb/ should fine doing uninstall , reinstall offical packages ... shouldn't remove dir unless horible port in first place!
simply making backup copy of dir should trick if worried, practice anyhow.
you can move db files into dir after install , mongodb pick them (normally.)
before however, make sure clean shutdown first! way won't end mongod.lock file won't let restart w/o repair.
$ ./mongo > use admin > db.shutdownserver()
Comments
Post a Comment