无法在声明了 dbpath 标志的情况下启动 mongodb

问题描述 投票:0回答:2
2017-05-11T12:03:49.700+0530 I CONTROL  [initandlisten] MongoDB starting : pid=5716 port=27017 dbpath=/data/db/ 64-bit host=localhost
2017-05-11T12:03:49.700+0530 I CONTROL  [initandlisten] db version v3.2.0
2017-05-11T12:03:49.700+0530 I CONTROL  [initandlisten] git version: 45d947729a0315accb6d4f15a6b06be6d9c19fe7
2017-05-11T12:03:49.700+0530 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1f 6 Jan 2014
2017-05-11T12:03:49.700+0530 I CONTROL  [initandlisten] allocator: tcmalloc
2017-05-11T12:03:49.700+0530 I CONTROL  [initandlisten] modules: none
2017-05-11T12:03:49.700+0530 I CONTROL  [initandlisten] build environment:
2017-05-11T12:03:49.700+0530 I CONTROL  [initandlisten]     distmod: ubuntu1404
2017-05-11T12:03:49.700+0530 I CONTROL  [initandlisten]     distarch: x86_64
2017-05-11T12:03:49.700+0530 I CONTROL  [initandlisten]     target_arch: x86_64
2017-05-11T12:03:49.700+0530 I CONTROL  [initandlisten] options: { storage: { dbPath: "/data/db/" } }
2017-05-11T12:03:49.724+0530 E NETWORK  [initandlisten] Failed to unlink socket file /tmp/mongodb-27017.sock errno:1 Operation not permitted
2017-05-11T12:03:49.724+0530 I -        [initandlisten] Fatal Assertion 28578
2017-05-11T12:03:49.724+0530 I -        [initandlisten] 

***aborting after fassert() failure`enter code here`

我无法启动 Mongodb 服务器,我也尝试使用服务并使用 --dbpath 我不知道问题是什么。我也尝试删除日志文件,但没有成功。

mongodb ubuntu-14.04
2个回答
0
投票

尝试手动删除文件/tmp/mongodb-27017.sock并重新启动进程。


0
投票

您是否尝试过像这样从终端使用 Sudo 启动它

sudo mongod

这将需要您的系统用户名和密码

© www.soinside.com 2019 - 2024. All rights reserved.