102 lines
3.1 KiB
Markdown
102 lines
3.1 KiB
Markdown
# 在 Docker 中运行 Milvus (Linux)
|
||
|
||
本页说明如何在 Docker 中启动 Milvus 实例。
|
||
|
||
## 前提条件
|
||
|
||
* [安装 Docker](https://docs.docker.com/get-docker/)。
|
||
* 安装前[请检查硬件和软件要求](/docs/zh/prerequisite-docker.md)。
|
||
|
||
## 在 Docker 中安装 Milvus
|
||
|
||
Milvus 提供了一个安装脚本,可将其安装为 docker 容器。该脚本可在[Milvus 存储库中](https://raw.githubusercontent.com/milvus-io/milvus/master/scripts/standalone_embed.sh)找到。要在 Docker 中安装 Milvus,只需运行
|
||
|
||
```shell
|
||
# Download the installation script
|
||
$ curl -sfL https://raw.githubusercontent.com/milvus-io/milvus/master/scripts/standalone_embed.sh -o standalone_embed.sh
|
||
|
||
# Start the Docker container
|
||
$ bash standalone_embed.sh start
|
||
|
||
|
||
|
||
|
||
```
|
||
|
||
如果你想在独立部署模式下使用[备份](https://milvus.io/docs/milvus_backup_overview.md),建议使用[Docker Compose](https://milvus.io/docs/install_standalone-docker-compose.md)部署方法。
|
||
|
||
如果在拉取镜像时遇到任何问题,请通过<community@zilliz.com>联系我们并提供有关问题的详细信息,我们将为您提供必要的支持。
|
||
|
||
运行安装脚本后
|
||
|
||
* 一个名为 Milvus 的 docker 容器已在**19530** 端口启动。
|
||
* 嵌入式 etcd 与 Milvus 安装在同一个容器中,服务端口为**2379**。它的配置文件被映射到当前文件夹中的**embedEtcd.yaml。**
|
||
* 要更改 Milvus 的默认配置,请将您的设置添加到当前文件夹中的**user.yaml**文件,然后重新启动服务。
|
||
* Milvus 数据卷被映射到当前文件夹中的**volumes/milvus**。
|
||
|
||
你可以访问 Milvus WebUI,网址是`http://127.0.0.1:9091/webui/` ,了解有关 Milvus 实例的更多信息。有关详细信息,请参阅[Milvus WebUI](/docs/zh/milvus-webui.md)。
|
||
|
||
## 停止和删除 Milvus
|
||
|
||
停止和删除此容器的方法如下
|
||
|
||
```shell
|
||
# Stop Milvus
|
||
$ bash standalone_embed.sh stop
|
||
|
||
# Delete Milvus data
|
||
$ bash standalone_embed.sh delete
|
||
|
||
|
||
|
||
|
||
```
|
||
|
||
你可以按以下步骤升级最新版本的 Milvus
|
||
|
||
```shell
|
||
# upgrade Milvus
|
||
$ bash standalone_embed.sh upgrade
|
||
|
||
|
||
|
||
|
||
```
|
||
|
||
## 下一步
|
||
|
||
在 Docker 中安装 Milvus 后,你可以
|
||
|
||
* 查看[快速入门](/docs/zh/quickstart.md),了解 Milvus 的功能。
|
||
|
||
* 了解 Milvus 的基本操作:
|
||
|
||
* [管理数据库](/docs/zh/manage_databases.md)
|
||
* [管理 Collections](/docs/zh/manage-collections.md)
|
||
* [管理分区](/docs/zh/manage-partitions.md)
|
||
* [插入、倒置和删除](/docs/zh/insert-update-delete.md)
|
||
* [单向量搜索](/docs/zh/single-vector-search.md)
|
||
* [混合搜索](/docs/zh/multi-vector-search.md)
|
||
|
||
* [使用 Helm 图表升级 Milvus](/docs/zh/upgrade_milvus_cluster-helm.md)。
|
||
|
||
* [扩展你的 Milvus 集群](/docs/zh/scaleout.md)。
|
||
|
||
* 在云上部署你的 Milvu 集群:
|
||
|
||
* [亚马逊 EKS](/docs/zh/eks.md)
|
||
* [谷歌云](/docs/zh/gcp.md)
|
||
* [微软 Azure](/docs/zh/azure.md)
|
||
|
||
https://milvus.io/docs/zh/install_standalone-docker.md
|
||
|
||
|
||
---
|
||
|
||
# 生成Key
|
||
|
||
|
||
openssl x509 -outform der -in certificate.pem -out certificate.der
|
||
|
||
cd /usr/ssl
|
||
openssl x509 -outform der -in hpit.wang.pem -out hpit.wang.der |