MongoDB not waiting for connections on port 28017 -
i started mongodb on windows 7. can connect port 27017, i'm not getting "admin web console waiting connections on port 28017" message, when visit http://localhost:28017/, nothing appears.
i following messages in console:
2015-06-02t17:54:43.271-0700 control hotfix kb2731284 or later update installed, no need zero-out data files 2015-06-02t17:54:43.281-0700 journal [initandlisten] journal dir=c:\data\db\journal 2015-06-02t17:54:43.282-0700 journal [initandlisten] recover : no journal files present, no recovery needed 2015-06-02t17:54:43.307-0700 journal [durability] durability thread started 2015-06-02t17:54:43.308-0700 journal [journal writer] journal writer thread started 2015-06-02t17:54:43.423-0700 control [initandlisten] mongodb starting : pid=5452 port=27017 dbpath=c:\data\db\ 64-bit host=myname-pc 2015-06-02t17:54:43.423-0700 control [initandlisten] targetminos: windows 7/windows server 2008 r2 2015-06-02t17:54:43.424-0700 control [initandlisten] db version v3.0.3 2015-06-02t17:54:43.428-0700 control [initandlisten] git version: b40106b36eecd1b4407eb1ad1af6bc60593c6105 2015-06-02t17:54:43.430-0700 control [initandlisten] openssl version: openssl 1.0.1m-fips 19 mar 2015 2015-06-02t17:54:43.432-0700 control [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='service pack 1') boost_lib_version=1_49 2015-06-02t17:54:43.434-0700 control [initandlisten] allocator: system 2015-06-02t17:54:43.435-0700 control [initandlisten] options: { net: { port: 27017 } } 2015-06-02t17:54:43.461-0700 network [initandlisten] waiting connections on port 27017
any appreciated!
my mongod.cfg file looks this:
logpath=c:\data\log\mongod.log dbpath=c:\data\db
if want use mongod.cfg file controlling port use following:
# set port number below port = 8080 dbpath = c:/data/db logpath = c:/data/log/mongod.log logappend = yes
please note though port assign needs accessible , not in use or blocked firewall
also make sure if running windows service need stop it. with:
net stop mongodb
then make change file , restart service
net start mongodb
Comments
Post a Comment