在ubuntu上运行mongoDB

时间:2013-09-30 13:34:31

标签: mongodb ubuntu meteor

我正在尝试在我的ubuntu上运行mongodb:

调用sudo service mongodb start告诉我mongo已经在运行。

但是当我运行命令mongomongod时,我收到错误:

terminate called after throwing an instance of 'std::runtime_error'
what():  locale::facet::_S_create_c_locale name not valid
Aborted (core dumped)

奇怪的是我有一个已经使用这个mongoDB的流星应用程序,它运行正常。我唯一的问题是我想查看/访问来自外部流星和mongo客户端的数据。

感谢。

ps aux | grep mongo给了我:

mongodb  27835  1.0  1.4 204936 14644 ?        Ssl  12:59   1:13 /usr/bin/mongod --config /etc/mongodb.conf
root     30838  0.0  0.0   4344   836 pts/0    S+   14:53   0:00 grep --color=auto mongo

1 个答案:

答案 0 :(得分:22)

看起来使用旧版本的Boost来编译Mongo。尝试执行

导出LC_ALL = C

首先启动mongo shell