Mac OS 10.13.6 mongodb版本3.4 brew安装的, mongodb的服务也是通过brew正常启动的,开始的时候链接27017端口都很正常.但是,升级了jdk到1.8的版本后,怎么链接都是失败,如下图:Connection failed.SERVER [localhost:27017] (Type: UNKNOWN) |_/ Connection error (MongoSocketOpenException): Exception opening socket|____/ Socket error: Connection refused (Connection refused)Details:Timed out after 5000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused (Connection refused)}}]请问,哪位知道是什么原因引起的,告诉下,先谢谢啦.
2 回答
- 2 回答
- 0 关注
- 3214 浏览
添加回答
举报
0/150
提交
取消