mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 04:49:08 +08:00
cecaa40f92
Signed-off-by: LocoRichard <lichen.wang@zilliz.com>
1.9 KiB
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
- Clone Milvus' GitHub repository:
$ cd /home/$USER
$ git clone https://github.com/milvus-io/milvus.git
- Install third-party dependencies:
$ cd milvus
$ ./scripts/install_deps.sh
- Compile executed binary for Milvus:
$ make milvus
Start Milvus
- Start infrastructure services:
$ cd /home/$USER/milvus/deployments/docker/dev
$ sudo docker-compose up -d
- 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 &