在高山linux上执行mongodb二进制文件

在高山linux上执行mongodb二进制文件

问题描述:

我试图在Alpine 64位Linux中运行二进制mongodb作为docker容器。但是当运行命令时: ./ mongodb 发生以下错误:

I'm trying to run the binary mongodb in Alpine 64bit Linux for a docker container. But when running the command: ./mongodb the following error occurs:

bash-4.3 # ./mongod
bash: ./mongod: No such file or directory.

为什么不能运行它?

如果您仍然需要使用一个包,那么现在有一个可以在测试库中使用,可以尝试一下。

If you are still needing to use a package then there is now one available in the testing repository you can have a try with.

http://dl-3.alpinelinux.org/alpine/ edge / testing / x86_64 /

echo 'http://dl-3.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories

apk upgrade --update

apk add mongodb