问题描述

命令行中使用mongo命令出现:
MongoDB shell version v4.4.2
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Error: couldn’t connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: ����Ŀ�����������ܾ����޷����ӡ� :
[email protected]/mongo/shell/mongo.js:374:17
@(connect):2:6
exception: connect failed
exiting with code 1
couldn‘t connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error conne

解决方案

windows(菜单键)+R输入services.msc
couldn‘t connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error conne
在服务窗口中找到

couldn‘t connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error conne

右键开启服务

重新输入mongo命令
couldn‘t connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error conne
成功启动

相关文章:

  • 2022-01-10
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2021-04-04
  • 2021-10-04
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2021-04-03
  • 2021-04-12
  • 2021-05-31
  • 2021-05-09
  • 2021-12-20
相关资源
相似解决方案