首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

Mongodb无法启动

问题:Mongodb 无法启动

错误日志

代码语言:txt
复制

2023-03-23T14:20:37.820+0800 E QUERY js 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 :: Connection refused

2023-03-23T14:20:37.820+0800 E QUERY js Error: couldn't connect to server ::1:27017, connection attempt failed: SocketException: Error connecting to ::1:27017 :: caused by :: Connection refused

2023-03-23T14:20:37.820+0800 E QUERY js 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 :: Connection refused

2023-03-23T14:20:37.820+0800 E QUERY js Error: couldn't connect to server ::1:27017, connection attempt failed: SocketException: Error connecting to ::1:27017 :: caused by :: Connection refused

2023-03-23T14:20:37.820+0800 E QUERY js 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 :: Connection refused

2023-03-23T14:20:37.820+0800 E QUERY js Error: couldn't connect to server ::1:27017, connection attempt failed: SocketException: Error connecting to ::1:27017 :: caused by :: Connection refused

2023-03-23T14:20:37.820+0800 E QUERY js 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 :: Connection refused

2023-03-23T14:20:37.820+0800 E QUERY js Error: couldn't connect to server ::1:27017, connection attempt failed: SocketException: Error connecting to ::1:27017 :: caused by :: Connection refused

2023-03-23T14:20:37.820+0800 E QUERY js 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 :: Connection refused

2023-03-23T14:20:37.820+0800 E QUERY js Error: couldn't connect to server ::1:27017, connection attempt failed: SocketException: Error connecting to ::1:27017 :: caused by :: Connection refused

2023-03-23T14:20:37.820+0800 E QUERY js 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 :: Connection refused

2023-03-23T14:20:37.820+0800 E QUERY js Error: couldn't connect to server ::1:27017, connection attempt failed: SocketException: Error connecting to ::1:27017 :: caused by :: Connection

页面内容是否对你有帮助?
有帮助
没帮助

相关·内容

mongodb服务启动失败_mongodb启动不了

在操作前需要启动mongodb数据库服务 1.首先打开dos窗口,然后选择路径到你的安装路径下的bin目录(我的路径是的D:mongo\mongodb\bin) 2.然后输入启动命令(D:mongo\data...\db 是我的数据库文件的目录前边两个 – 不能少) mongod –dbpath D:mongo\data\db 3.回车dos界面出现 12701 的字样说明服务启动成功了如图所示 服务启动成功后...这时候我们需要再打开一个dos窗口(服务启动的窗口不要关闭)找到安装路径(我的安装路径 为 D:mongo\mongodb\bin) 执行 mongo 此时第一个dos窗口(也就是启动服务的窗口会显示...我们在启动MySQL的时候是通过net start mysql和net stop mysql来开启和关闭的,那么是否能使用net start MongoDB和net stop MongoDB启动和关闭呢...[sc] Create Service 成功 这个时候就可以使用net start MongoDB和net stop MongoDB启动跟关闭mongo服务了。

7.2K20
  • 启动设置mongodb

    启动      ①:启动之前,我们要给mongodb指定一个文件夹,这里取名为”db",用来存放mongodb的数据。     ...②:微软徽标+R,输入cmd,首先找到“mongodb”的路径,然后运行mongod开启命令,同时用--dbpath指定数据存放地点为“db”文件夹。      ...③:最后要看下是否开启成功,从图中的信息中获知,mongodb采用27017端口,那么我们就在浏览器里面键入“http://localhost:27017/”,              打开后,mongodb...告诉我们在27017上Add 1000可以用http模式查看mongodb的管理信息。... remove操作       remove中如果不带参数将删除所有数据,呵呵,很危险的操作,在mongodb中是一个不可撤回的操作,三思而后行。

    1.4K130

    启动 MongoDB Service

    启动 MongoDB Service 需要创建数据库路径和日志文件 image.png D:\vue前端视频学习\Node\MongoDB\data\db D:\vue前端视频学习\Node\MongoDB...\data\log\mongo.log 启动服务 mongod --dbpath “D:\vue\Node\MongoDB\data\db” --logpath “D:\vue\Node\MongoDB...\data\log\mongod.log” 服务启动好之后运行mongodb image.png 再打开一个窗口运行mongo image.png 这里我已经配置过环境变量了 没配置环境变量的在根目录下执行...看到上面的运行结果 说明mongodb已经打开 为了方便每次启动创建一个config文件 启动服务 image.png 用记事本打开就行 写入数据库地址 和日志文件地址 dbpath=D:\vue\...” --install 完成服务的安装 也可已删除 mongod --remove serviceName “MongoDB” 输入 services.msc 查看有没有 MongoDB的服务 点击启动

    62410
    领券