无法理解mondodb服务器安装步骤

发布于 2024-10-15 07:21:26 字数 566 浏览 3 评论 0原文

我遵循了很多步骤,最后被困在这里。我是一个菜鸟。请帮助我理解以下几行 :: (来自页面 http://www.mongodb.org/display/DOCS/Building+for+Linux" rel="nofollow">http://www. mongodb.org/display/DOCS/Building+for+Linux)

选择一个稳定版本,除非执行 true dev

git tag -l

切换到稳定分支(除非进行开发)——

偶数第二个数字表示“稳定” 。 (尽管使用

stharding,如果最新版本小于

1.6.0,您将需要最新版本。)例如:

git checkout r1.4.1

[无法理解上面所说的内容]

在此之后,“构建”中只有两个步骤处理这些是“scons all”和“scons --prefix=/opt/mongo install”

i followed a lot of steps and finally am stuck here. am a rookie. pls help me understand the following lines :: (frm the page http://www.mongodb.org/display/DOCS/Building+for+Linux)

pick a stable version unless doing true dev

git tag -l

Switch to a stable branch (unless doing development) --

an even second number indicates "stable". (Although with

stharding you will want the latest if the latest is less

than 1.6.0.) For example:

git checkout r1.4.1

[COULD NOT UNDERSTAND WHAT IS BEING SAID ABOVE]

after this there are only two steps in the "build" process those are 'scons all' and 'scons --prefix=/opt/mongo install'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

疯狂的代价 2024-10-22 07:21:26

分支和标记

对于 MongoDB,他们决定对哪个“分支”是稳定的以及哪个“分支”正在开发中进行不同的编号。实际上,他们使用主分支作为开发分支标记,当他们认为他们应该突破开发分支。
他们为每个稳定版本创建一个适当的分支。

原因:开发正在进行中,这意味着他们永远不必稍后返回到开发分支的先前版本。
每次开发分支被认为值得变得稳定时,稳定分支和开发分支之间的代码都是相同的。

开发仍在继续,但有时您必须修复稳定分支中的错误。
在这种情况下,您可以使用您创建的分支来修复该特定问题,而不会影响您的开发分支(如果不需要)
检查远程分支

git branch -r

10gen 使用的另一个机制是 git 提供的标记系统。
每个分支(开发或稳定)都需要一些里程碑。
在开发分支(主)上,每次将一组功能合并到代码中时,它们都会用新版本标记开发分支。这有助于确定您正在谈论的内容,并为已取得的成就提供一些里程碑。

对于马厩分支,它是相同的方法,但更多的是修复错误。
要检查所有标签:

git tag

在 Linux 上构建

我假设您已经进行了预热并安装了所有必需的库。

所以现在你必须决定要使用哪个分支。
首先,您必须克隆存储库

git clone git://github.com/mongodb/mongo.git

然后您必须决定要使用哪个分支,因为默认分支是开发(主)。
您可以通过进入文件夹 mongo 来检查

cd mongo
git branch -a

活动分支旁边有一个星号。

如果您想使用最新的代码,那么您已经准备就绪,可以开始构建过程了。
如果你想使用稳定的分支,你必须获得正确的版本

git checkout r1.6.5

,你现在使用的是版本 1.6.5 标记的代码,

现在你所要做的就是启动构建的过程。

scons all

并安装软件

scons --prefix=/opt/mongo install

Branching and tagging

For MongoDB they have decided to number differently which "branch " is stable and which "branch" is in development.Actually, they are using the master branch as there development branch tagging along the way when they think they should bump the development branch.
They create a proper branch for each stable version.

Why: the development is ongoing which mean they never have to come back to a previous version of a development branch later in time.
Every time a development branch is deemed worthy to become stable the code between the stable and development branch are the same.

The development is carried on but sometimes you have to fix a bug in the stable branch.
In that case you can use the branch you have created to fix that particular issue without impacting your development branch (if there is no need for it)
To checkout the remote branch

git branch -r

The other mecanism used by 10gen is the tagging system offered by git.
Each branch (development or stable) need some milestones.
On the development branch (master) each time a set of features is merge in the code, they tag the development branch with a new version. That help to identify what you are talking about to give some milestone on what has been accomplished.

For the stables branches it's the same approach but it's more about fixing bugs.
To check all the tags:

git tag

Building on Linux

I assume you have followed so warm up and installed all the required libraries.

So now you have to decide which branch you want to use.
First you have to clone the repository

git clone git://github.com/mongodb/mongo.git

Then you have to decide which branch you want to use because the default one is the development (master).
You can check that by going in the folder mongo

cd mongo
git branch -a

There is a star next to the active branch.

If you want to use the latest code you are all set and you can start the building process.
if you want to use a stable branch you have to get the right version

git checkout r1.6.5

you are now using the code tagged with version 1.6.5

now all you have to do it to launch the built process.

scons all

and install the software

scons --prefix=/opt/mongo install
预谋 2024-10-22 07:21:26

您不需要从头开始构建。 MongoDB 网站上有预构建的 debian 软件包。

查看这些说明 http://www.mongodb.org/display/ DOCS/Ubuntu+and+Debian+packages,你应该会更轻松。

You shouldn't need to build from scratch. There are prebuilt debian packages on the MongoDB website.

Check out those instructions at http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages and you should have a much easier time.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文