milvus/INSTALL.md
LocoRichard cecaa40f92
[skip ci] update install (#5914)
Signed-off-by: LocoRichard <lichen.wang@zilliz.com>
2021-06-21 16:06:08 +08:00

1.9 KiB

Build and Start Milvus from Source Code

This article describes how to build and start Milvus Standalone and Cluster from source code.

Prerequisites

Install the following before building Milvus from source code.

  • Git for version control.
  • Golang version 1.15 or higher and associated toolkits.
  • CMake version 3.14 or higher for compilation.
  • OpenBLAS (Basic Linear Algebra Subprograms) library version 0.3.9 or higher for matrix operations.

Build Milvus

  1. Clone Milvus' GitHub repository:
$ cd /home/$USER
$ git clone https://github.com/milvus-io/milvus.git
  1. Install third-party dependencies:
$ cd milvus
$ ./scripts/install_deps.sh
  1. Compile executed binary for Milvus:
$ make milvus

Start Milvus

  1. Start infrastructure services:
$ cd /home/$USER/milvus/deployments/docker/dev
$ sudo docker-compose up -d
  1. Start Milvus:
  • For Milvus Standalone
$ cd /home/$USER/milvus
./bin/milvus run standalone    > /tmp/standalone.log     2>&1  &
  • For Milvus Cluster:
$ cd /home/$USER/milvus
#start RootCoord
./bin/milvus run rootcoord     > /tmp/rootcoord.log      2>&1  &
#start coord
./bin/milvus run datacoord     > /tmp/datacoord.log      2>&1  &
./bin/milvus run indexcoord    > /tmp/indexcoord.log     2>&1  &
./bin/milvus run querycoord    > /tmp/querycoord.log     2>&1  &
#start node
./bin/milvus run proxy         > /tmp/proxy.log          2>&1  &
./bin/milvus run datanode      > /tmp/data_node.log      2>&1  &
./bin/milvus run indexnode     > /tmp/index_node.log     2>&1  &
./bin/milvus run querynode     > /tmp/query_node.log     2>&1  &