Mongodb service has been started, but local localhost:27017 cannot be accessed: 27017?
After visiting the page
How can we solve this problem?
Under normal circumstances, port 27017 of mongodb accessed using http(s) is accessible and will only return
It looks like you are trying to access MongoDB over HTTP on the native driver port.This hint does not provide any service, which means that you are trying to use http to access the native driver interface, that is, the database interface. If https is to be used, ssl support needs to be turned on, as shown inhttps://docs.mongodb.com/manual/tutorial/configure-ssl/index.html
However, judging from your log, you reported ssl handshake failure after your visit, which should be due to a problem with mongodb’s ssl configuration.
If you want to use the http page provided by mongodb to view logs and statistics and rest interface, use
httpinterface = trueThe configuration is on and its port is 28017. However, the host visited port 27017, which does not seem to be using this function.
However, if the subject wants to use the browser as mongodb’s client to use its database function (a tool like phpmyadmin), mongodb itself does not provide this function. Can be usedsleepy.mongooseTo achieve this.