###mongodbに接続できない
ubuntu16.04LTSのサーバ版でmongodbインストールして起動したところ27017ポートへの接続の時点で止まっていましす。
$ sudo mongod -config /etc/mongod.conf 2017-04-22T22:10:35.108+0900 I CONTROL [main] ***** SERVER RESTARTED ***** 2017-04-22T22:10:35.111+0900 I CONTROL [initandlisten] MongoDB starting : pid=28863 port=27017 dbpath=/var/lib/mongodb 64-bit host=quartz2017 2017-04-22T22:10:35.111+0900 I CONTROL [initandlisten] db version v3.4.4 2017-04-22T22:10:35.111+0900 I CONTROL [initandlisten] git version: 888390515874a9debd1b6c5d36559ca86b44babd 2017-04-22T22:10:35.111+0900 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016 2017-04-22T22:10:35.111+0900 I CONTROL [initandlisten] allocator: tcmalloc 2017-04-22T22:10:35.111+0900 I CONTROL [initandlisten] modules: none 2017-04-22T22:10:35.111+0900 I CONTROL [initandlisten] build environment: 2017-04-22T22:10:35.111+0900 I CONTROL [initandlisten] distmod: ubuntu1604 2017-04-22T22:10:35.111+0900 I CONTROL [initandlisten] distarch: x86_64 2017-04-22T22:10:35.111+0900 I CONTROL [initandlisten] target_arch: x86_64 2017-04-22T22:10:35.111+0900 I CONTROL [initandlisten] options: { config: "/etc/mongod.conf", net: { bindIp: "0.0.0.0", port: 27017 }, storage: { dbPath: "/var/lib/mongodb", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "/var/log/mongodb/mongod.log" } } 2017-04-22T22:10:35.129+0900 I STORAGE [initandlisten] 2017-04-22T22:10:35.129+0900 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine 2017-04-22T22:10:35.129+0900 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem 2017-04-22T22:10:35.129+0900 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1423M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0), 2017-04-22T22:10:35.724+0900 I CONTROL [initandlisten] 2017-04-22T22:10:35.724+0900 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. 2017-04-22T22:10:35.724+0900 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. 2017-04-22T22:10:35.724+0900 I CONTROL [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended. 2017-04-22T22:10:35.724+0900 I CONTROL [initandlisten] 2017-04-22T22:10:35.724+0900 I CONTROL [initandlisten] 2017-04-22T22:10:35.724+0900 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. 2017-04-22T22:10:35.724+0900 I CONTROL [initandlisten] ** We suggest setting it to 'never' 2017-04-22T22:10:35.724+0900 I CONTROL [initandlisten] 2017-04-22T22:10:35.724+0900 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. 2017-04-22T22:10:35.724+0900 I CONTROL [initandlisten] ** We suggest setting it to 'never' 2017-04-22T22:10:35.724+0900 I CONTROL [initandlisten] 2017-04-22T22:10:35.963+0900 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/var/lib/mongodb/diagnostic.data' 2017-04-22T22:10:36.343+0900 I INDEX [initandlisten] build index on: admin.system.version properties: { v: 2, key: { version: 1 }, name: "incompatible_with_version_32", ns: "admin.system.version" } 2017-04-22T22:10:36.343+0900 I INDEX [initandlisten] building index using bulk method; build may temporarily use up to 500 megabytes of RAM 2017-04-22T22:10:36.345+0900 I INDEX [initandlisten] build index done. scanned 0 total records. 0 secs 2017-04-22T22:10:36.346+0900 I COMMAND [initandlisten] setting featureCompatibilityVersion to 3.4 2017-04-22T22:10:36.347+0900 I NETWORK [thread1] waiting for connections on port 27017
何がいけないのか全くわかりません。
どうかご教授いただけないでしょうか。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/04/27 12:30 編集