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/

不知道什么原因?

转载于:https://www.cnblogs.com/keke3399/archive/2012/08/09/2630354.html

你可能感兴趣的:(mongodb启动后打不开http://127.0.0.1:28017/)