2017-07-31 52 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

回答

相關問題