回答
如果你使用Git的bash,请使用以下命令
$ ./mongo
在我得到这个错误: - ./mongo MongoDB的外壳版本v3.4.7 连接到:mongodb://127.0.0.1:27017 2017-08-18T08:12:04.236 + 0530 W NETWORK [thread1]在5000毫秒毫秒后无法连接到127.0.0.1:27017,放弃。 2017-08-18T08:12:04.236 + 0530 E QUERY [thread1]错误:无法连接到服务器127.0.0.1:27017,连接尝试失败: [email protected]/mongo/shell/mongo.js:237: 13 @(连接):1:6 异常:连接失败 –
看起来你没有mongo服务器运行,运行'mongod' –
仍然收到相同的错误! –
- 1. Select2 with AJAX always not found found
- 2. found/not found found with shared_ptr指示
- 3. Xamarin.Android.Support.Compat not found
- 4. iOS Receipt not found
- 5. Spring:application-context.xml not found
- 6. sqlsrv_connect()not found
- 7. finfo path not found
- 8. @Autowired bean not found
- 9. mkvirtualenv:command not found
- 10. FreeImage library not found
- 11. -bash:tsc:command not found
- 12. Geckodriver not found
- 13. “3706 provider not found”
- 14. Vows:command not found
- 15. bin/sh:opt:command not found
- 16. bash:print:command not found
- 17. rake:command not found
- 18. AWTUtilities not found
- 19. centos7“export:command not found
- 20. sudo:docker-compose:command not found
- 21. PHP“Exception not found”
- 22. Python:“IOError:C not found”
- 23. akka.dispatch.Future not found
- 24. java.lang.Exception:TestComplete/TestExecute not found
- 25. ObjectID not found
- 26. io.realm.RealmObject not found
- 27. CFWheels DataSource Not Found
- 28. Library andenginephysicsbox2dextension not found
- 29. org.springframework.web.servlet.mvc.SimpleFormController NOT Found
- 30. System.Security.Cryptography not found
运行'ls',看看什么是文件夹 –