在 alpine linux 上执行 mongodb 二进制文件 [英] Execute mongodb binaries on alpine linux

查看:19
本文介绍了在 alpine linux 上执行 mongodb 二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Alpine 64 位 Linux 中为 docker 容器运行二进制 mongodb.但是运行命令时:./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

这篇关于在 alpine linux 上执行 mongodb 二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆