“无法取消链接套接字文件" MongoDB 3.0中的错误 [英] 'Failed to unlink socket file" error in MongoDB 3.0
问题描述
我是MongoDB的新手.我正在尝试在Ubuntu 13.0 LTS上安装MongoDb 3.0,Ubuntu 13.0 LTS是Windows 7主机上的VM.我已经成功安装了MongoDB(软件包等),但是当我执行命令sudo service mongod start
时,在"/var/log/mongodb/mongod.log"日志文件中收到以下错误.谁能帮助我了解此错误.互联网上没有与此相关的内容.
I am new to MongoDB. I am trying to install MongoDb 3.0 on Ubuntu 13.0 LTS, which is a VM on Windows 7 Host. I have installed MongoDB successfully (packages etc.), but when I execute the command sudo service mongod start
, I get the following error in the "/var/log/mongodb/mongod.log" log file. Can anyone help me understanding this error. There is nothing on internet related to this.
2015-04-23T00:12:00.876-0400 I CONTROL *****服务器重新启动***** 2015-04-23T00:12:00.931-0400 E NETWORK [initandlisten]无法取消套接字文件/tmp/mongodb-27017.sock errno的链接:1不允许操作 2015-04-23T00:12:00.931-0400 I-[initandlisten]致命断言28578 2015-04-23T00:12:00.931-0400 I-[initandlisten]
2015-04-23T00:12:00.876-0400 I CONTROL ***** SERVER RESTARTED ***** 2015-04-23T00:12:00.931-0400 E NETWORK [initandlisten] Failed to unlink socket file /tmp/mongodb-27017.sock errno:1 Operation not permitted 2015-04-23T00:12:00.931-0400 I - [initandlisten] Fatal Assertion 28578 2015-04-23T00:12:00.931-0400 I - [initandlisten]
推荐答案
我本人已通过删除mongodb-27017.sock
文件来解决此问题.删除此文件后,我运行了该服务,效果很好.但是,我仍然不确定问题的根本原因.命令ls - lat /tmp/mongodb-27017.sock
的输出现在是
I have fixed this issue myself, by deleting the mongodb-27017.sock
file . I ran the service after deleting this file, which worked fine. However, I am still not sure the root cause of the issue. The output of the command ls - lat /tmp/mongodb-27017.sock
is now
srwx------ 1 mongodb nogroup 0 Apr 23 06:24 /tmp/mongodb-27017.sock
这篇关于“无法取消链接套接字文件" MongoDB 3.0中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!