我刚刚将 Meteor 版本 0.5.9 (45fef52095) 安装到我的 CentOS 版本 6.3 (Final) 服务器(Linux 版本 2.6.32-279.19.1.el6.i686 (mockbuild@c6b8.bsys.dev.centos.org ) (gcc 版本 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Wed Dec 19 04:30:58 UTC 2012)
我在 apache 用户下以/mnt/apshared 的形式安装了 Windows SBS 服务器的 samba 共享。我在其中创建了一个名为“webmeteor”的目录。我在“webmeteor”目录中创建了一个名为“myapp”的应用程序,所以我的目录是这样的:/mnt/apshared/webmeteor/myapp。
我以 root 身份登录。当我尝试使用 meteor
命令运行应用程序时,我收到以下错误消息:
Unexpected mongo exit code 100. Restarting.
Unexpected mongo exit code 100. Restarting.
Unexpected mongo exit code 100. Restarting.
Can't start mongod
MongoDB had an unspecified uncaught exception.
Check to make sure that MongoDB is able to write to its database directory.
我的第一个问题是 StackOverflow 问题:Creating a new meteor.js file and get error 100, MongoDB not able to write - 但是,遵循这些建议(sudo'ing the meteor 命令,并检查我有 70GB 可用的磁盘空间)没有奏效。我很确定这些问题与权限有关。
我尝试将 chown
递归到 root:root(因为我以 root 身份登录),并将 chmod
递归到 777,但无济于事。
我在问你,接下来我应该尝试什么来启动我的 Meteor 应用程序?
提前致谢。
最佳答案
使用 meteor reset
会清除数据库中的所有数据。如果您对此感到担心,请导航到您的项目文件夹。
cd/path/to/my/project
这里你需要删除 mongodb.lock
文件。
rm .meteor/local/db/mongodb.lock
现在您可以使用命令运行 Meteor,
meteor
关于mongodb - meteor :意外的mongo退出代码100,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15610385/