英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论