0
私はnode.jsとexpress.jsでアプリケーションを作っています。私はMongoの作品を実行すると、私はのmongodを実行しようとすると、このエラーが表示され、localhostを入力していないとき:"mongod"を実行したときのエラー
をmongodは実行28017が
モンゴ
MongoDB shell version: 3.0.12
connecting to: test
Server has startup warnings:
2016-07-08T07:19:25.309-0300 I CONTROL [initandlisten]
2016-07-08T07:19:25.309-0300 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2016-07-08T07:19:25.309-0300 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2016-07-08T07:19:25.309-0300 I CONTROL [initandlisten]
2016-07-08T07:19:25.309-0300 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2016-07-08T07:19:25.309-0300 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2016-07-08T07:19:25.309-0300 I CONTROL [initandlisten]
> 2016-07-08T10:29:01.459-0300 I CONTROL [initandlisten] MongoDB
> starting : pid=9761 port=27017 dbpath=/data/db 64-bit host=lucaspc
> 2016-07-08T10:29:01.459-0300 I CONTROL [initandlisten] db version
> v3.0.12 2016-07-08T10:29:01.459-0300 I CONTROL [initandlisten] git
> version: 33934938e0e95d534cebbaff656cde916b9c3573
> 2016-07-08T10:29:01.459-0300 I CONTROL [initandlisten] build info:
> Linux ip-10-229-66-2 3.13.0-24-generiC#46-Ubuntu SMP Thu Apr 10
> 19:11:08 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
> 2016-07-08T10:29:01.459-0300 I CONTROL [initandlisten] allocator:
> tcmalloc 2016-07-08T10:29:01.459-0300 I CONTROL [initandlisten]
> options: {} 2016-07-08T10:29:01.500-0300 E NETWORK [initandlisten]
> listen(): bind() failed errno:98 Address already in use for socket:
> 0.0.0.0:27017 2016-07-08T10:29:01.500-0300 E NETWORK [initandlisten] addr already in use 2016-07-08T10:29:01.532-0300 I JOURNAL
> [initandlisten] journal dir=/data/db/journal
> 2016-07-08T10:29:01.532-0300 I JOURNAL [initandlisten] recover : no
> journal files present, no recovery needed 2016-07-08T10:29:01.624-0300
> I JOURNAL [durability] Durability thread started
> 2016-07-08T10:29:01.624-0300 I JOURNAL [journal writer] Journal
> writer thread started 2016-07-08T10:29:01.682-0300 I CONTROL
> [initandlisten] 2016-07-08T10:29:01.682-0300 I CONTROL
> [initandlisten] ** WARNING:
> /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
> 2016-07-08T10:29:01.682-0300 I CONTROL [initandlisten] ** We
> suggest setting it to 'never' 2016-07-08T10:29:01.682-0300 I CONTROL
> [initandlisten] 2016-07-08T10:29:01.682-0300 I CONTROL
> [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag
> is 'always'. 2016-07-08T10:29:01.682-0300 I CONTROL [initandlisten]
> ** We suggest setting it to 'never' 2016-07-08T10:29:01.682-0300 I CONTROL [initandlisten]
> 2016-07-08T10:29:01.688-0300 I CONTROL [initandlisten] now exiting
> 2016-07-08T10:29:01.688-0300 I NETWORK [initandlisten] shutdown:
> going to close listening sockets... 2016-07-08T10:29:01.688-0300 I
> NETWORK [initandlisten] shutdown: going to flush diaglog...
> 2016-07-08T10:29:01.688-0300 I NETWORK [initandlisten] shutdown:
> going to close sockets... 2016-07-08T10:29:01.689-0300 I STORAGE
> [initandlisten] shutdown: waiting for fs preallocator...
> 2016-07-08T10:29:01.689-0300 I STORAGE [initandlisten] shutdown:
> final commit... 2016-07-08T10:29:01.732-0300 I JOURNAL
> [initandlisten] journalCleanup... 2016-07-08T10:29:01.732-0300 I
> JOURNAL [initandlisten] removeJournalFiles
> 2016-07-08T10:29:01.794-0300 I JOURNAL [initandlisten] Terminating
> durability thread ... 2016-07-08T10:29:01.894-0300 I JOURNAL [journal
> writer] Journal writer thread stopped 2016-07-08T10:29:01.894-0300 I
> JOURNAL [durability] Durability thread stopped
> 2016-07-08T10:29:01.894-0300 I STORAGE [initandlisten] shutdown:
> closing all files... 2016-07-08T10:29:01.895-0300 I STORAGE
> [initandlisten] closeAllFiles() finished 2016-07-08T10:29:01.895-0300
> I STORAGE [initandlisten] shutdown: removing fs lock...
> 2016-07-08T10:29:01.896-0300 I CONTROL [initandlisten] dbexit: rc:
> 48
ローカルホストに接続しません:28017
ポートはすでに使用されています。listen():bind()は失敗しました。errno:98アドレスはすでにsocket: > 0.0.0.0:27017'のアドレスで使用されています。同じポートで待機するプロセスは実行していますか? – KRONWALLED