2017-07-31 3 views
0

mongoシェルを2日間インストールしようとしていますが、同じエラーで固まってしまいました。投稿のこれに関して多くのチュートリアルを見たことがありますが、実りありませんでした。誰かが私をトラックに戻してくれることを願っています。前もって感謝します。MacBookにmongoシェルをインストールする際にエラーが発生しました:読み取り専用ディレクトリにロックファイルを作成しようとしました

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

あなたがデータディレクトリに書き込みができないようだであることを示すコンソール、その後$ sudo mongod

を入力します。 は読み取りにロックファイルを作成しようとしました/ data/db –

+0

あなたの質問のタイトルを編集して、間違いを含めてください。また、あなたのログが適切にレンダリングされるようにあなたの質問の本文を編集しました。フォーマットの詳細については、[編集ヘルプ](https://stackoverflow.com/editing-help)を参照してください。がんばろう! – Jon

答えて

関連する問題