Windows中的mongodb fork

编程入门 行业动态 更新时间:2024-10-24 00:19:11
本文介绍了Windows中的mongodb fork的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在教程中看到他们使用--fork作为mongod的参数.但是,当我尝试这样做时,它说未知选项--fork.那么如何在Windows上--fork mongodb?

I have seen on tutorials that they use --fork as parameter of mongod. But when I try to do so, it says unknown option --fork. So how to --fork mongodb on windows?

推荐答案

--fork实际上是Linux命令,而不是Windows或mongod命令.我认为Windows根本不存在相同的情况.

--fork is actually a Linux command not a Windows or mongod command. I do not believe the same exists on Windows at all.

Linux在这里有两个原语,分别是fork和exec,但是Windows确实只有createProcess,实际上是fork-和-exec.

Linux has two primitives here, fork and exec however Windows only really has createProcess which is effectively fork-and-exec.

设置服务并以fork模式运行它是不同的,服务更像init.d脚本,但这实际上是唯一的方法.

Setting up a service and running it in fork mode is not the same, a service is more like a init.d script however that is currently the only way really.

Cygwin可以非常缓慢地在Windows上模拟fork,如此处所述: Windows与fork()最接近的事物是什么?

Cygwin can emulate fork on Windows, very slowly, as described here: What is the closest thing windows has to fork()?

更多推荐

Windows中的mongodb fork

本文发布于:2023-10-09 06:20:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1474940.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Windows   mongodb   fork

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!