13193220
mkdir xxx后mongod --dbpath xxx初始化了一下,然后在另外的一个命令行中运行mongo显示已经链接。然后,更改mongo.conf个dbpath后,service启动,报错。我更改了xxx文件夹的权限后,仍然启动报错。已经删除过mongod.lock文件。现在,mongod命令能启动,而servce却不能启动,报错如下: 命令行中报错:ERROR: child process failed, exited with error number 45 log中:couldn't open /var/lib/mongo/xxx/local.ns errno:13 Permission denied error couldn't open file /var/lib/mongo/xxx/local.ns terminating 求解答。是有线程没有关闭吗?