mongodb启动后打不开http://127.0.0.1:28017/

yum安装的mongodb,用systemctl start mongod.service,则不开启28017端口

http://127.0.0.1:27017/显示You are trying to access MongoDB on the native driver port. For http diagnostic access, add 1000 to the port number

可是却打不开http://127.0.0.1:28017/,netstat -nltp没有28017端口

然而改用mongod --dbpath=/data/db启动则可以打开http://127.0.0.1:28017/

不知道什么原因?

posted on 2012-08-09 15:29  keke3399  阅读(3785)  评论(2编辑  收藏  举报