Record stepped pit - connection error MongoDB Compass Community

In the console input mongodstart mongodb service, the address bar enter http: // localhost: 27017 / to see the chart below indicates the service started successfully.
Start mongodb map service
Open the "MongoDB Compass Community" software, click on "connect" button Times MongoDB not running on the provided host and port of error, as shown below:
Figure Error

Cause: Due to the need, configure 127.0.0.1 as xxxx in the host file, it should be replaced by localhost
host screenshots

Guess you like

Origin www.cnblogs.com/superlizhao/p/12024062.html