2021-10-02 16:50:04 +08:00
# Run Milvus standalone through binary files
2021-08-20 16:20:13 +08:00
2021-11-16 19:27:27 +08:00
To quickly install Milvus standalone without docker or kubernetes, this document provides a tutorial for installing Milvus and dependencies, etcd and MinIO, through binary files.
2021-08-20 16:20:13 +08:00
2021-10-14 17:00:58 +08:00
Before installing, you can refer to [docker-compose.yml ](https://github.com/milvus-io/milvus/blob/master/deployments/docker/standalone/docker-compose.yml ) to check the versions required by etcd and MinIO.
2021-08-20 16:20:13 +08:00
2021-10-14 17:00:58 +08:00
## Start etcd service
2021-08-20 16:20:13 +08:00
2021-09-22 18:43:54 +08:00
#### Refer: https://github.com/etcd-io/etcd/releases
2021-08-20 16:20:13 +08:00
2021-10-05 12:36:03 +08:00
```shell
2021-10-21 10:12:36 +08:00
$ wget https://github.com/etcd-io/etcd/releases/download/v3.5.0/etcd-v3.5.0-linux-amd64.tar.gz
$ tar zxvf etcd-v3.5.0-linux-amd64.tar.gz
$ cd etcd-v3.5.0-linux-amd64
$ ./etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
2021-08-20 16:20:13 +08:00
```
2021-09-18 10:39:51 +08:00
## Start MinIO service
2021-08-20 16:20:13 +08:00
2021-09-22 18:51:53 +08:00
#### Refer: https://min.io/download#/linux
2021-08-20 16:20:13 +08:00
2021-10-05 12:36:03 +08:00
```shell
2021-10-21 10:12:36 +08:00
$ wget https://dl.min.io/server/minio/release/linux-amd64/minio
$ chmod +x minio
$ ./minio server /minio
2021-08-20 16:20:13 +08:00
```
2021-12-13 19:37:35 +08:00
## Start Milvus standalone
2021-08-20 16:20:13 +08:00
2021-12-13 19:37:35 +08:00
To start Milvus standalone, you need a Milvus binary file. Currently you can get the latest version of Milvus binary file through the Milvus docker image. (We will upload Milvus binary files in the future)
2021-08-20 16:20:13 +08:00
2021-10-05 12:36:03 +08:00
```shell
2022-02-23 18:43:52 +08:00
$ docker run -d --name milvus milvusdb/milvus:v2.0.1 /bin/bash
2021-10-21 10:12:36 +08:00
$ docker cp milvus:/milvus .
2021-08-20 16:20:13 +08:00
```
2021-09-17 14:47:50 +08:00
### Install Milvus dependencies
2021-08-20 16:20:13 +08:00
2021-10-05 12:36:03 +08:00
```shell
2021-10-21 10:12:36 +08:00
$ sudo apt-get install libopenblas-dev
$ sudo apt-get install libgomp1
$ sudo apt-get install libtbb2
2021-08-20 16:20:13 +08:00
```
2021-09-17 14:47:50 +08:00
### Start Milvus service
2021-08-20 16:20:13 +08:00
2021-10-05 12:36:03 +08:00
```shell
2021-10-21 10:12:36 +08:00
$ cd milvus
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib
$ ./bin/milvus run standalone
2021-08-20 16:20:13 +08:00
```