在Manjaro上安装MongoDB [英] Install MongoDB on Manjaro

查看:506
本文介绍了在Manjaro上安装MongoDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Manjaro Linux上安装MongoDB社区服务器时遇到困难.

I'm facing difficulties installing the MongoDB community server on Manjaro Linux.

没有关于如何在基于Arch的系统上安装的官方文档,Pacman在AUR仓库中找不到它.

There isn't official documentation on how to install it on Arch-based systems and Pacman can't find it in the AUR repos.

有人尝试安装它吗?

推荐答案

这是我要做的安装.

由于该软件包不可用在正式的Arch存储库中,并且无法使用pacman进行安装,您需要按照一些步骤进行安装.

As the package is not available in the official Arch repositories and can't be installed using pacman, you need to follow a few steps to install it.

首先,您需要从AUR获取预构建二进制文件的回购的URL.可以在此处找到,而在撰写本文时,它已经是 https://aur.archlinux.org/mongodb-bin.git

First, you need to get the URL for the repo of prebuilt binaries from AUR. It can be found here and by the time of writing this it was https://aur.archlinux.org/mongodb-bin.git

只需将存储库克隆到您的主目录或其他任何位置.执行git clone https://aur.archlinux.org/mongodb-bin.git,然后转到克隆的目录cd mongodb-bin.

Simply clone the repo in your home directory or anywhere else. Do git clone https://aur.archlinux.org/mongodb-bin.git, then head to the cloned directory, cd mongodb-bin.

现在,您所需要做的就是运行makepkg -si命令来制作软件包. -s标志将为您处理依赖关系,而-i标志将安装软件包.

Now, all you need to do is to run makepkg -si command to make the package. the -s flag will handle the dependencies for you and the -i flag will install the package.

makepkg完成执行后,请不要忘记启动mongodb.service.运行systemctl start mongodb,并根据需要启用systemctl enable mongodb.

After makepkg finishes its execution, don't forget to start mongodb.service. Run systemctl start mongodb and if needed enable it with systemctl enable mongodb.

在终端中键入mongo,如果Mongo Shell运行,就一切就绪.

Type mongo in the terminal and if the Mongo Shell runs you are all set.

这篇关于在Manjaro上安装MongoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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