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/
不知道什么原因?