mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-25 20:32:46 +00:00
update MongoDB document
add file .DS_Store to .gitignore edit README.md (url example)
This commit is contained in:
parent
12c52dc36e
commit
519ea5d0eb
|
|
@ -13,4 +13,4 @@
|
|||
.bundle
|
||||
vendor
|
||||
.vscode/
|
||||
|
||||
.DS_Store
|
||||
|
|
@ -78,4 +78,4 @@ wget https://mirrors.tuna.tsinghua.edu.cn/static/status/isoinfo.json -O static/s
|
|||
### 特殊用法
|
||||
|
||||
#### 表单选择
|
||||
例如 <http://mirrors.tuna.tsinghua.edu.cn/help/tensorflow/> 中,通过表单选择操作系统和版本号,建议直接使用 Vue.js
|
||||
例如 <http://mirrors.tuna.tsinghua.edu.cn/help/mongodb/> 中,通过表单选择操作系统和版本号,建议直接使用 Vue.js
|
||||
|
|
|
|||
|
|
@ -5,8 +5,9 @@ mirrorid: mongodb
|
|||
---
|
||||
|
||||
## MongoDB 镜像使用帮助
|
||||
> 目前只镜像了 amd64(i386) 架构,请注意。
|
||||
|
||||
MongoDB 镜像自 mongodb [官方仓库](https://repo.mongodb.org/), 目前有 RHEL/CentOS, Ubuntu, Debian 的镜像,仅支持 x86-64 架构。
|
||||
MongoDB 镜像自 MongoDB [官方仓库](https://repo.mongodb.org/), 目前有 `RHEL/CentOS`, `Ubuntu`, `Debian` 的镜像,支持 `amd64(i386)` `arm64` `ppc64el` 还有 `s390x` 架构。
|
||||
更详细内容,可以参考 [官方文档](https://docs.mongodb.org/master/administration/install-on-linux/)
|
||||
|
||||
### Debian/Ubuntu 用户
|
||||
|
|
@ -14,21 +15,21 @@ MongoDB 镜像自 mongodb [官方仓库](https://repo.mongodb.org/), 目前有
|
|||
首先信任 MongoDB 的 GPG 公钥:
|
||||
|
||||
```
|
||||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
|
||||
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
|
||||
```
|
||||
|
||||
再选择你的 Debian/Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/mongodb.list`
|
||||
再选择你的 Debian / Ubuntu 版本,文本框中内容写进 `/etc/apt/sources.list.d/mongodb.list`
|
||||
|
||||
<form class="form-inline">
|
||||
<div class="form-group">
|
||||
<label>你的Debian/Ubuntu版本: </label>
|
||||
<label>你的 Debian/Ubuntu 版本: </label>
|
||||
<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
|
||||
<option data-os="debian" data-release="jessie" data-opt='{"repo-name": "main"}'>Debian 8 (Jessie)</option>
|
||||
<option data-os="debian" data-release="stretch" data-opt='{"repo-name": "main"}'>Debian 9 (Stretch)</option>
|
||||
<option data-os="debian" data-release="buster" data-opt='{"repo-name": "main"}'>Debian 10 (Buster)</option>
|
||||
<option data-os="ubuntu" data-release="trusty" data-opt='{"repo-name": "multiverse"}' >Ubuntu 14.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="xenial" data-opt='{"repo-name": "multiverse"}'>Ubuntu 16.04 LTS</option>
|
||||
<option selected data-os="ubuntu" data-release="bionic" data-opt='{"repo-name": "multiverse"}'>Ubuntu 18.04 LTS</option>
|
||||
<option data-os="ubuntu" data-release="bionic" data-opt='{"repo-name": "multiverse"}'>Ubuntu 18.04 LTS</option>
|
||||
<option selected data-os="ubuntu" data-release="focal" data-opt='{"repo-name": "multiverse"}'>Ubuntu 20.04 LTS</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
|
@ -39,11 +40,9 @@ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
|
|||
</code>
|
||||
</pre>
|
||||
|
||||
{% raw %}
|
||||
<script id="apt-template" type="x-tmpl-markup">
|
||||
deb {{if os_name|equals>ubuntu}}https{{else}}http{{/if}}://{%endraw%}{{ site.hostname }}{%raw%}/mongodb/apt/{{os_name}} {{release_name}}/mongodb-org/stable {{repo-name}}
|
||||
deb https://{{ site.hostname }}/mongodb/apt/{%raw%}{{os_name}} {{release_name}}{%endraw%}/mongodb-org/4.4 {%raw%}{{repo-name}}{%endraw%}
|
||||
</script>
|
||||
{%endraw%}
|
||||
|
||||
安装 `mongodb-org` 即可
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue