当前位置: 动力学知识库 > 问答 > 编程问答 >

MongoDB shell run() function

问题描述:

run("/test.js")

in mongo shell. i always get error

run("/test.js")

shell: started program /test.js

sh2516| Unable to start program /test.js errno:13 Permission denied

255

for test i add 777 permission on this file

i doesn't have any passwords on DB

test.js is empty

What am I doing wrong?

网友答案:

try using load() rather than run(). load is for javascript while run is for system binaries.

分享给朋友:
您可能感兴趣的文章:
随机阅读: