共享系统上的mongod.lock文件权限

时间:2015-06-02 19:40:06

标签: macos mongodb permissions

我正在使用共享的mac OS X 10.6系统,但是在设置MongoDB实例时遇到了问题。我没有办法获得root权限。

我在standard / data / db目录中设置了一个单独的--dbpath。

当我使用自定义配置文件运行mongod时,我收到常见的10310错误:

2015-06-02T12:18:53.110-0700 kern.sched unavailable
2015-06-02T12:18:53.115-0700 [initandlisten] MongoDB starting :    pid=88680 port=27017 dbpath=/mir/ew/ntellis/mongodata 64-bit   host=fornax.astro.berkeley.edu
2015-06-02T12:18:53.115-0700 [initandlisten] 
2015-06-02T12:18:53.115-0700 [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
2015-06-02T12:18:53.115-0700 [initandlisten] db version v2.6.10
2015-06-02T12:18:53.115-0700 [initandlisten] git version: 5901dbfb49d16eaef6f2c2c50fba534d23ac7f6c
2015-06-02T12:18:53.115-0700 [initandlisten] build info: Darwin bs- osx-108-x86-64-2.10gen.cc 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan  6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64 BOOST_LIB_VERSION=1_49
2015-06-02T12:18:53.115-0700 [initandlisten] allocator: system
2015-06-02T12:18:53.116-0700 [initandlisten] options: { storage: { dbPath: "/mir/ew/ntellis/mongodata" } }
2015-06-02T12:18:53.176-0700 [initandlisten] exception in initAndListen: 10310 Unable to lock file: /mir/ew/ntellis/mongodata/mongod.lock. Is a mongod instance already running?, terminating
2015-06-02T12:18:53.176-0700 [initandlisten] dbexit: 
2015-06-02T12:18:53.176-0700 [initandlisten] shutdown: going to close listening sockets...
2015-06-02T12:18:53.176-0700 [initandlisten] shutdown: going to flush diaglog...
2015-06-02T12:18:53.176-0700 [initandlisten] shutdown: going to close sockets...
2015-06-02T12:18:53.176-0700 [initandlisten] shutdown: waiting for fs preallocator...
2015-06-02T12:18:53.176-0700 [initandlisten] shutdown: lock for final commit...
2015-06-02T12:18:53.176-0700 [initandlisten] shutdown: final commit...
2015-06-02T12:18:53.176-0700 [initandlisten] shutdown: closing all files...
2015-06-02T12:18:53.176-0700 [initandlisten] closeAllFiles() finished
2015-06-02T12:18:53.176-0700 [initandlisten] dbexit: really exiting now

我尝试删除锁定文件,更改目录权限,完全删除数据目录以及其他一些技巧。 mongod进程似乎在启动时成功创建了锁定文件,然后在几分之一秒后无法锁定它。

这可能是启动时分配给流程的权限问题吗?这是一个问题,我需要去我的服务器管理员吗?

感谢您的帮助。

0 个答案:

没有答案