gpt4 book ai didi

linux - MongoDB 无法启动 - ***在 fassert() 失败后中止

转载 作者:IT老高 更新时间:2023-10-28 13:10:51 25 4
gpt4 key购买 nike

我是 Ubuntu (Linux tbh) 的新手。我在启动 MongoDB 服务时遇到了问题。我想使用 Ruby on Rails 和 MongoDB 创建 Web 应用,但 mongo 似乎无法启动。

我关注了 MongoDB installation on Ubuntu在我到达 sudo service mongod start

之前,所有安装都没有问题

mongod.log

2016-01-01T10:58:15.545+0000 I CONTROL  ***** SERVER RESTARTED *****
2016-01-01T10:58:15.548+0000 I CONTROL [initandlisten] MongoDB starting : pid=3868 port=27017 dbpath=/var/lib/mongodb 64-bit host=damian-CX61-0NC-CX61-0ND-CX61-0NF-CX61-0NE
2016-01-01T10:58:15.548+0000 I CONTROL [initandlisten] db version v3.0.8
2016-01-01T10:58:15.548+0000 I CONTROL [initandlisten] git version: 83d8cc25e00e42856924d84e220fbe4a839e605d
2016-01-01T10:58:15.548+0000 I CONTROL [initandlisten] build info: Linux ip-10-187-89-126 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
2016-01-01T10:58:15.548+0000 I CONTROL [initandlisten] allocator: tcmalloc
2016-01-01T10:58:15.548+0000 I CONTROL [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "127.0.0.1", port: 27017 }, storage: { dbPath: "/var/lib/mongodb", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "/var/log/mongodb/mongod.log" } }
2016-01-01T10:58:15.567+0000 E NETWORK [initandlisten] Failed to unlink socket file /tmp/mongodb-27017.sock errno:1 Operation not permitted
2016-01-01T10:58:15.567+0000 I - [initandlisten] Fatal Assertion 28578
2016-01-01T10:58:15.567+0000 I - [initandlisten]

***aborting after fassert() failure

那么我做错了什么或它的不同问题?

最佳答案

kometen 的解决方案|

Does the file /tmp/mongodb-27017.sock exist? If so try to delete it, ie. 'sudo rm /tmp/mongodb-27017.sock'.

关于linux - MongoDB 无法启动 - ***在 fassert() 失败后中止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34555603/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com