ITPub博客

首页 > 应用开发 > IT综合 > 【MongoDB】Failed to unlink socket file xxx.sock errno:1

【MongoDB】Failed to unlink socket file xxx.sock errno:1

原创 IT综合 作者:风尘_NULL 时间:2016-05-24 16:28:26 0 删除 编辑
今天用自动化工具启动mongos失败,查看日志,出现
[mongosMain] Failed to unlink socket file /tmp/mongodb-27017.sock errno:1 Operation not permitted


在/tmp目录下,发现有用root跑的socket文件,而实际上我是用apps跑得:
srwx------. 1 root root    0 Jan  8 11:21 mongodb-26000.sock
srwx------  1 root root    0 Apr 28 11:12 mongodb-26679.sock
srwx------  1 root root    0 Jan  5  2008 mongodb-27017.sock

删除这些文件,问题解决。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30221425/viewspace-2106095/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
腾讯科技(深圳)有限公司 DBA

注册时间:2015-04-24

  • 博文量
    76
  • 访问量
    238219