如果显然已删除端口,如何在FreeDSB上安装MongoDB? [英] How do I install MongoDB on FreeDSB if the port was apparently removed?
问题描述
运行 sudo pkg install mongodb
会产生错误,指出不存在这样的软件包.我认为这是因为它在此网站上说 https://www.freshports.org/databases/mongodb/,表明MongoDB端口已过期并已被删除.我现在如何在我的FreeBSD服务器上获得MongoDB的版本?
Running sudo pkg install mongodb
produces an error stating that no such package exists. I figured this is because it says on this website https://www.freshports.org/databases/mongodb/ that the MongoDB port has expired and has been removed. How do I get a version of MongoDB on my FreeBSD server now?
推荐答案
我建议每次您要安装软件包时,都要执行pkg搜索
I recommend that every time you want to install a package you perform a pkg search
pkg search packagename
对于MongoDB:
root@demo:/ # pkg search mongodb
mongodb32-3.2.11_2 Distributed document-oriented "NoSQL" database
mongodb32-tools-3.2.11 Tools for MongoDB
mongodb34-3.4.16 Distributed document-oriented "NoSQL" database
mongodb34-tools-3.4.9 Tools for MongoDB
mongodb36-3.6.6_2 Distributed document-oriented "NoSQL" database
mongodb36-tools-3.6.3 Tools for MongoDB
p5-Mojolicious-Plugin-Mongodb-1.16_1 Use MongoDB in Mojolicious
p5-MongoDB-2.0.1 Mongo Driver for Perl
php56-pecl-mongodb-1.5.2 PECL classes for MongoDB
php70-pecl-mongodb-1.5.2 PECL classes for MongoDB
php71-pecl-mongodb-1.5.2 PECL classes for MongoDB
php72-pecl-mongodb-1.5.2 PECL classes for MongoDB
py27-mtools-mongodb-1.2.3_2 Setup test environments; parse, filter and visualize MongoDB log files
py27-nagios-check_mongodb-0.1 Nagios plugin to check mongodb server
如您所见,有mongodb32,mongodb34和mongodb36然后,您可以执行以下操作:
As you can see there are mongodb32, mongodb34 and mongodb36 You can then perform the following:
pkg install mongodb36-3.6.6_2
您还可以从端口安装软件包,但是这很耗时,并且在大多数情况下是没有必要的,除非您要为mongodb安装启用自定义标志/模块.
You could also install packages from ports but it's more time consuming and in the most cases is not necessary, unless you want to enable custom flags/modules to your mongodb installation.
https://www.freebsd.org/doc/handbook/ports-using.html
这篇关于如果显然已删除端口,如何在FreeDSB上安装MongoDB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!