2017-07-31 35 views
0

我一直在尝试安装mongo shell,因为两天后我仍然陷入了同样的错误,的职位。已经看过很多关于这个教程的教程,但它并不富有成效。我希望有人能让我重新回到赛道上。提前致谢。在macbook上安装mongo shell时出错:试图在只读目录下创建一个锁文件

2017-08-01T00:46:18.842+0530 I CONTROL [init and listen] MongoDB starting : pid=28050 port=27017 dbpath=/data/db 64-bit host=Salonis-MacBook-Pro-2.local 
2017-08-01T00:46:18.842+0530 I CONTROL [init and listen] db version v3.4.6 
2017-08-01T00:46:18.843+0530 I CONTROL [init and listen] git version: c55eb86ef46ee7aede3b1e2a5d184a7df4bfb5b5 
2017-08-01T00:46:18.843+0530 I CONTROL [init and listen] OpenSSL version: OpenSSL 0.9.8zh 14 Jan 2016 
2017-08-01T00:46:18.843+0530 I CONTROL [init and listen] allocator: system 
2017-08-01T00:46:18.843+0530 I CONTROL [init and listen] modules: enterprise 
2017-08-01T00:46:18.843+0530 I CONTROL [init and listen] build environment: 
2017-08-01T00:46:18.843+0530 I CONTROL [init and listen]  distarch: x86_64 
2017-08-01T00:46:18.843+0530 I CONTROL [init and listen]  target_arch: x86_64 
2017-08-01T00:46:18.843+0530 I CONTROL [init and listen] options: {} 
2017-08-01T00:46:18.867+0530 I STORAGE [init and listen] exception in initAndListen: 20 Attempted to create a lock file on a read-only directory: /data/db, terminating 
2017-08-01T00:46:18.867+0530 I NETWORK [init and listen] shutdown: going to close listening sockets... 
2017-08-01T00:46:18.867+0530 I NETWORK [init and listen] shutdown: going to flush dialog... 
2017-08-01T00:46:18.867+0530 I CONTROL [init and listen] now exiting 
2017-08-01T00:46:18.867+0530 I CONTROL [init and listen] shutting down with code:100 
+0

看来你无法写入数据目录: 试图在读取 - 创建一个锁定文件只有目录:/ data/db –

+0

我编辑了问题的标题以包含错误。我还编辑了你的问题的正文,以便你的日志正确渲染 - 请参阅[编辑帮助](https://stackoverflow.com/editing-help)了解更多格式化信息。祝你好运! – Jon

回答

相关问题