如何在Windows 8.1上将MongoDB作为服务安装 [英] How to install MongoDB as service on Windows 8.1

查看:56
本文介绍了如何在Windows 8.1上将MongoDB作为服务安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Windows 8.1 64位,MongoDb 2.6.0,我正在以管理员身份运行

I am running Windows 8.1 64 bit, MongoDb 2.6.0, I am running as administrator

这是我正在运行的命令:

This is the command I am running:

c:\mongo\bin\mongod.exe --logpath "C:\mongo\logs\server.log" --dbpath "C:\mongo\data\db" --install

这是我收到的错误,请注意此错误出现在日志文件中!

This is the error I receive, note that this error appears in the log file!

--install has to be used with --logpath

我已阅读这些内容,并尝试了其他问题的建议,但均无济于事 在窗口8上安装mongodb 如何将MongoDB设置为Windows服务

I've read these, and tried the suggestions from these other questions to no avail install mongodb on window 8 How to set MongoDB as a windows service

推荐答案

这是一个错误.该问题已在2小时前修复,但将成为2.6.1的一部分.请参阅《 Jira问题》

It's a bug. It has been fixed 2 hours ago but will be part of 2.6.1. See Jira Issue here

作为一种解决方法,您可以将2.4.9安装为Windows Service,然后使用简单的副本&替换为2.6.粘贴

As a workaround you can install 2.4.9 as Windows Service and then replace the files with 2.6 with a simple copy & paste

这篇关于如何在Windows 8.1上将MongoDB作为服务安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆