0
我正在使用Digital Ocean并重新启动我的VPS,现在我的应用程序无法启动。MongoDB - 重新启动VPS后与数据库的连接丢失
起初它说它失去了与我的数据库的连接,现在它只是一个白屏。我不知道从这里做什么。
这里的消息:
Unable to connect to MongoDB: Failed to connect to: localhost:27017: Remote server has closed the connection
该网站是一个笨。
如果我跑mongod
然后我得到这个(不,我应该需要运行这个):
Tue Oct 28 19:42:45.031 [initandlisten] MongoDB starting : pid=1240 port=27017 dbpath=/data/db/ 64-bit host=lucrum
Tue Oct 28 19:42:45.031 [initandlisten] db version v2.4.8
Tue Oct 28 19:42:45.031 [initandlisten] git version: a350fc38922fbda2cec8d5dd842237b904eafc14
Tue Oct 28 19:42:45.032 [initandlisten] build info: Linux ip-10-2-29-40 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49
Tue Oct 28 19:42:45.032 [initandlisten] allocator: tcmalloc
Tue Oct 28 19:42:45.032 [initandlisten] options: {}
Tue Oct 28 19:42:45.041 [initandlisten] journal dir=/data/db/journal
Tue Oct 28 19:42:45.042 [initandlisten] recover : no journal files present, no recovery needed
Tue Oct 28 19:42:45.166 [initandlisten] ERROR: listen(): bind() failed errno:98 Address already in use for socket: 0.0.0.0:27017
Tue Oct 28 19:42:45.166 [initandlisten] ERROR: addr already in use
Tue Oct 28 19:42:45.167 [initandlisten] now exiting
Tue Oct 28 19:42:45.167 dbexit:
Tue Oct 28 19:42:45.167 [initandlisten] shutdown: going to close listening sockets...
Tue Oct 28 19:42:45.167 [initandlisten] shutdown: going to flush diaglog...
Tue Oct 28 19:42:45.168 [initandlisten] shutdown: going to close sockets...
Tue Oct 28 19:42:45.168 [initandlisten] shutdown: waiting for fs preallocator...
Tue Oct 28 19:42:45.168 [initandlisten] shutdown: lock for final commit...
Tue Oct 28 19:42:45.168 [initandlisten] shutdown: final commit...
Tue Oct 28 19:42:45.168 [websvr] ERROR: listen(): bind() failed errno:98 Address already in use for socket: 0.0.0.0:28017
Tue Oct 28 19:42:45.169 [websvr] ERROR: addr already in use
Tue Oct 28 19:42:45.172 [initandlisten] shutdown: closing all files...
Tue Oct 28 19:42:45.173 [initandlisten] closeAllFiles() finished
Tue Oct 28 19:42:45.173 [initandlisten] journalCleanup...
Tue Oct 28 19:42:45.173 [initandlisten] removeJournalFiles
Tue Oct 28 19:42:45.174 [initandlisten] shutdown: removing fs lock...
Tue Oct 28 19:42:45.174 dbexit: really exiting now