MongoDB   发布时间:2022-05-23  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了pymongo.errors.OperationFailure: cannot run map reduce without the js engine大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

在执行mongodb中执行Js语句时,提示错误:

pymongo.errors.OperationFailure: cAnnot run map reduce without the Js ENGIne

是因为mongodb默认情况下配置Js引擎,但是在我们的SIT / UAT环境中,由于DBA会产生安全问题,因此禁用Js引擎来运行JavaScript代码。

如果想要继续执行Js代码,那么就需要打开Js引擎。

如果是用mongodb源码编译,那么可以执行以下代码:

scons --release --usev8


大佬总结

以上是大佬教程为你收集整理的pymongo.errors.OperationFailure: cannot run map reduce without the js engine全部内容,希望文章能够帮你解决pymongo.errors.OperationFailure: cannot run map reduce without the js engine所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: