'无法取消连接套接字文件'MongoDB 3.0 中的错误 [英] 'Failed to unlink socket file" error in MongoDB 3.0

查看:30
本文介绍了'无法取消连接套接字文件'MongoDB 3.0 中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 MongoDB 的新手.我正在尝试在 Ubuntu 13.0 LTS 上安装 MongoDb 3.0,它是 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] 无法取消套接字 file/tmp/mongodb-27017.sock errno:1 不允许操作2015-04-23T00:12:00.931-0400 I - [initandlisten] 致命断言 285782015-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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆