Skip to content

Install Mongo on Ubuntu 14.04

Paco Mekler edited this page Jan 16, 2015 · 2 revisions
  • Update and Upgrade the system

    apt-get update && apt-get upgrade -y

  • Set the appropriate encoding (since we speak spanish in México, we need es_MX.UTF-8)

    locale-gen es_MX.UTF-8

  • Install mongo

    apt-get install mongodb -y

  • Download the mongo dumps

     wget http://3903b795d5baf43f41af-5a4e2dc33f4d93e681c3d4c060607d64.r40.cf1.rackcdn.com/censo_completo_2013.tar.gz
     tar zxvf censo_completo_2013.tar.gz
     wget http://3903b795d5baf43f41af-5a4e2dc33f4d93e681c3d4c060607d64.r40.cf1.rackcdn.com/mte_programas.tar.gz
     tar zxvf mte_programas.tar.gz
     wget http://3903b795d5baf43f41af-5a4e2dc33f4d93e681c3d4c060607d64.r40.cf1.rackcdn.com/mte_produccion.tar.gz
     tar zxvf mte_produccion.tar.gz
    
  • Import them

     mongorestore censo_completo_2013
     mongorestore mte_programas
     mongorestore mte_produccion