简体   繁体   English

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

[英]cant understand mondodb server installation steps

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 ) 请帮助我理解以下几行::(从http://www.mongodb.org/display/DOCS/Building+for+Linux页面开始)

pick a stable version unless doing true dev 选择稳定的版本,除非做真正的开发

git tag -l git标签-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: 比1.6.0。)例如:

git checkout r1.4.1 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' 在此之后,“构建”过程中只有两个步骤,即“ 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. 对于MongoDB,他们决定对哪个“分支”是稳定的,哪个“分支”正在开发中进行编号。实际上,他们在使用master分支作为开发分支的标记时就认为应该颠覆开发分支。 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. 10gen使用的其他机制是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. 在开发分支(master)上,每次在代码中合并一组功能时,它们都会使用新版本标记开发分支。 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. 对于马s分支,这是相同的方法,但更多的是关于修复错误。 To check all the tags: 要检查所有标签:

git tag

Building on Linux 在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 您可以通过进入文件夹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 您现在正在使用标记为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

You shouldn't need to build from scratch. 您不需要从头开始构建。 There are prebuilt debian packages on the MongoDB website. MongoDB网站上有预构建的debian软件包。

Check out those instructions at http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages and you should have a much easier time. 查看http://www.mongodb.org/display/DOCS/Ubuntu+++Debian+packages上的说明,您应该有更轻松的时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM