Server Side Public License
VERSION 1, OCTOBER 16, 2018
Copyright © 2018 MongoDB, Inc.
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
TERMS AND CONDITIONS
0. Definitions.
“This License” refers to Server Side Public License.
“Copyright” also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
“The Program” refers to any copyrightable work licensed under this
License. Each licensee is addressed as “you”. “Licensees” and
“recipients” may be individuals or organizations.
To “modify” a work means to copy from or adapt all or part of the work in
a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a “modified version” of the
earlier work or a work “based on” the earlier work.
A “covered work” means either the unmodified Program or a work based on
the Program.
To “propagate” a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To “convey” a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through a
computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays “Appropriate Legal Notices” to the
extent that it includes a convenient and prominently visible feature that
(1) displays an appropriate copyright notice, and (2) tells the user that
there is no warranty for the work (except to the extent that warranties
are provided), that licensees may convey the work under this License, and
how to view a copy of this License. If the interface presents a list of
user commands or options, such as a menu, a prominent item in the list
meets this criterion.
1. Source Code.
The “source code” for a work means the preferred form of the work for
making modifications to it. “Object code” means any non-source form of a
work.
A “Standard Interface” means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that is
widely used among developers working in that language. The “System
Libraries” of an executable work include anything, other than the work as
a whole, that (a) is included in the normal form of packaging a Major
Component, but which is not part of that Major Component, and (b) serves
only to enable use of the work with that Major Component, or to implement
a Standard Interface for which an implementation is available to the
public in source code form. A “Major Component”, in this context, means a
major essential component (kernel, window system, and so on) of the
specific operating system (if any) on which the executable work runs, or
a compiler used to produce the work, or an object code interpreter used
to run it.
The “Corresponding Source” for a work in object code form means all the
source code needed to generate, install, and (for an executable work) run
the object code and to modify the work, including scripts to control
those activities. However, it does not include the work's System
Libraries, or general-purpose tools or generally available free programs
which are used unmodified in performing those activities but which are
not part of the work. For example, Corresponding Source includes
interface definition files associated with source files for the work, and
the source code for shared libraries and dynamically linked subprograms
that the work is specifically designed to require, such as by intimate
data communication or control flow between those subprograms and other
parts of the work.
The Corresponding Source need not include anything that users can
regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program, subject to section 13. The
output from running a covered work is covered by this License only if the
output, given its content, constitutes a covered work. This License
acknowledges your rights of fair use or other equivalent, as provided by
copyright law. Subject to section 13, you may make, run and propagate
covered works that you do not convey, without conditions so long as your
license otherwise remains in force. You may convey covered works to
others for the sole purpose of having them make modifications exclusively
for you, or provide you with facilities for running those works, provided
that you comply with the terms of this License in conveying all
material for which you do not control copyright. Those thus making or
running the covered works for you must do so exclusively on your
behalf, under your direction and control, on terms that prohibit them
from making any copies of your copyrighted material outside their
relationship with you.
Conveying under any other circumstances is permitted solely under the
conditions stated below. Sublicensing is not allowed; section 10 makes it
unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article 11
of the WIPO copyright treaty adopted on 20 December 1996, or similar laws
prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention is
effected by exercising rights under this License with respect to the
covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's users,
your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice; keep
intact all notices stating that this License and any non-permissive terms
added in accord with section 7 apply to the code; keep intact all notices
of the absence of any warranty; and give all recipients a copy of this
License along with the Program. You may charge any price or no price for
each copy that you convey, and you may offer support or warranty
protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the terms
of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it,
and giving a relevant date.
b) The work must carry prominent notices stating that it is released
under this License and any conditions added under section 7. This
requirement modifies the requirement in section 4 to “keep intact all
notices”.
c) You must license the entire work, as a whol
数据库 mongodb linux v6.0.1
需积分: 0 58 浏览量
更新于2022-12-07
收藏 68.37MB TGZ 举报
MongoDB是一款开源、高性能、无模式的分布式文档型数据库,被广泛应用于大数据处理、Web应用、内容管理系统等场景。在Linux环境下安装MongoDB 6.0.1版本,需要了解和掌握以下几个关键知识点:
1. **MongoDB概述**:MongoDB是一种NoSQL数据库,它以BSON(二进制JSON)格式存储数据,支持丰富的查询语法,提供了高可用性和水平扩展性。MongoDB的分布式特性使其在大数据时代成为许多企业的首选。
2. **Linux系统准备**:在RHEL 7.0系统上安装MongoDB,首先确保系统是最新的,通过`yum update`命令进行更新。同时,安装必要的开发工具,如`gcc`和`curl`,它们在编译和配置MongoDB时会用到。
3. **安装步骤**:下载MongoDB的Linux发行版,本例中为`mongodb-linux-x86_64-rhel70-6.0.1`。将该文件解压至适当目录,如 `/usr/local`。使用`tar`命令解压,例如:`tar -zxvf mongodb-linux-x86_64-rhel70-6.0.1.tgz`。
4. **配置环境变量**:为了方便使用,需要将MongoDB的bin目录添加到PATH环境变量中。编辑`/etc/profile`或`~/.bashrc`文件,添加一行`export PATH=$PATH:/usr/local/mongodb-linux-x86_64-rhel70-6.0.1/bin`,然后执行`source`命令使更改生效。
5. **创建数据目录**:MongoDB需要一个数据存储目录,通常设置为`/data/db`。确保该目录存在并可由MongoDB服务用户(如`mongod`)访问。
6. **启动MongoDB服务**:运行`mongod`命令启动MongoDB服务器。若要作为后台服务运行,可以加上`--fork`选项,并指定日志文件位置,例如`mongod --fork --logpath /var/log/mongodb.log`。
7. **验证运行状态**:在另一个终端窗口中,启动MongoDB shell(`mongo`命令),并输入`db.stats()`来查看数据库的基本信息,确认MongoDB已成功启动。
8. **防火墙设置**:如果Linux系统启用了防火墙,记得打开MongoDB的默认端口(27017),使用`firewall-cmd`命令添加规则。
9. **安全配置**:虽然MongoDB可以不加任何安全措施运行,但在生产环境中,应启用身份验证。这包括创建用户、设置权限和启用授权。可以使用`--auth`选项启动`mongod`,并在shell中执行相应的安全管理命令。
10. **复制集与高可用性**:MongoDB的复制集功能是实现高可用性的基础,它允许数据在多个节点间同步。创建复制集涉及配置每个节点、选举主节点以及设置仲裁节点(如果需要)。
11. **监控与性能调优**:MongoDB提供了一系列的监控工具,如`mongostat`和`mongotop`,用于实时查看数据库的运行状态。根据监控结果,可以调整内存分配、磁盘I/O、网络设置等,优化数据库性能。
12. **备份与恢复**:定期备份是数据库管理的重要环节。MongoDB支持多种备份方式,如`mongodump`和`mongorestore`,还可以利用云服务进行备份。
13. **安全最佳实践**:了解MongoDB的安全最佳实践,包括限制网络访问、使用安全的连接协议、定期更新到最新版本、遵循最小权限原则等。
14. **数据迁移与导入导出**:在不同版本或不同环境之间迁移数据时,需要熟悉`mongoimport`和`mongoexport`命令,或者使用`bsondump`和`bsonimport`工具。
以上就是关于MongoDB 6.0.1在Linux(RHEL 7.0)环境下安装、配置和管理的一些核心知识点,希望对你有所帮助。实际操作中,还需结合具体情况进行调整和优化。

江上一小白
- 粉丝: 19
最新资源
- 基于asyncio和aiohttp的七牛云Python异步客户端。.zip
- 基于 SQLAlchemy 和 Pydantic 的异步 Python
- 基于android,uiautomator2,opencv-python基于图片识别算法自动化统计页面加载.zip
- 基于bugscanner的python网站指纹识别练习脚本.zip
- 基于brython与codemirror的前端python运行页面.zip
- 基于blockly 生成 python scrapy代码练手小项目.zip
- 基于FFmpeg的python视频处理包-因疫情影响,工作比较繁忙,心情也没在视频上面再研究,该项目已经搁置,源码很简单,大家可以自己研究一下自己扩展.zip
- 基于Django 2.1.2 和Python 3 的个人漫画管理网站.zip
- 基于ES构建的一个简单的检索式问答系统,主要用来学习下python相关的ES操作.zip
- 基于Golang的GitHub反向代理下载 python源码来自:https___github.com_hunshcn_gh-proxy.zip
- 基于hash向量和共现矩阵的python聚类:DBSCAN、k-means、agglomerative.zip
- 基于Flask的Python全国招聘岗位就业可视化系统.zip
- 基于Jupyter notebook的一本python入门书。.zip
- 基于Keras预训练模型VGG16、ResNet50、InceptionV3,使用Python的HTTP框架Flask搭建图像识别接口.zip
- 基于kafka和python实现的某个功能.zip
- 基于Numpy和Boost__Python实现的矩量法.zip