service mongod start on debian doesnt work

前端 未结 2 1542
陌清茗
陌清茗 2021-01-14 01:30

I created a instance of linux debian on Google Compute Engine.

I Install git, node.js, python and some other things without problems

But when I install mong

相关标签:
2条回答
  • 2021-01-14 02:14

    I had to download without apt-get install, and install the deb package separatly.

    Before install the package, I run this commands..

    export LANGUAGE=en_US.UTF-8
    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    sudo locale-gen en_US.UTF-8
    sudo dpkg-reconfigure locales
    

    And that was all, now I have mongodb running in my debian machine.

    Thanks.

    0 讨论(0)
  • 2021-01-14 02:28

    If you are seeing this kind of error log in the apt-get log of mongodb-org:

    Package mongodb-org-server is not configured yet.
    

    This maybe related to the GCE debian image bug with the locale https://github.com/andsens/bootstrap-vz/issues/49

    So a way around this is to do:

    export LANGUAGE=en_US.UTF-8
    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    sudo locale-gen en_US.UTF-8
    sudo dpkg-reconfigure locales
    

    The dpkg-reconfigure command will open a dialog for selecting the desires locales. Just select generate all, then choose e_US.UTF-8

    Then you can follow the steps in :

    http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/

    As you have probably have done before.

    This worked for me in gce debian-7 image today.

    0 讨论(0)
提交回复
热议问题