Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding \"processManagement.fork\" to false"

huangapple go评论193阅读模式
英文:

Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding \"processManagement.fork\" to false"

问题

我尝试将独立的 MongoDB 转换为只有一个复制品的复制集,这是为了在我的后端上使用变更流。我发现了一个错误,在谷歌的任何网站中都没有描述,所以这是错误消息:"Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding "processManagement.fork" to false"。有人知道如何解决吗?

我尝试在 Linux 中搜索环境变量 - 没有找到,我尝试设置带有描述名称的变量到 Linux 环境中 - 不起作用,并搜索可能的环境变量。

英文:

I tried convert standalone MongoDB to replica set with only one replica, it was required for change streams on my backend.
I found error, which don't descripted in any site in google, so here is error message: 'Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding "processManagement.fork" to false"'.
Anybody who knows how solve it?

I tried search environment variable in linux -- not found, i tried set variable with descripted name to environment in linux -- not works, and searched possible enviroment variables

答案1

得分: 2

我找到了解决方案,想要通过此主题中的信息来分享这个解决方案 https://www.alibabacloud.com/blog/how-to-set-environment-variables-in-a-systemd-service_598533

这里
/usr/lib/systemd/system/mongod.service
我需要删除字符串 MONGODB_CONFIG_OVERRIDE_NOFORK=1

英文:

I found solution, and would like to share this solution by infromation in this topic https://www.alibabacloud.com/blog/how-to-set-environment-variables-in-a-systemd-service_598533

here
/usr/lib/systemd/system/mongod.service
i needed delete string MONGODB_CONFIG_OVERRIDE_NOFORK=1

huangapple
  • 本文由 发表于 2023年5月20日 14:12:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/76293776.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定