-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip ci] Create build from source doc
Former-commit-id: ab66f08498bc2ed9062e002fc9bbb14db2962108
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Install Milvus from Source Code | ||
|
||
## Software requirements | ||
|
||
- Ubuntu 18.04 or higher | ||
- CMake 3.14 or higher | ||
- CUDA 10.0 or higher | ||
- NVIDIA driver 418 or higher | ||
|
||
## Compilation | ||
|
||
### Step 1 Install dependencies | ||
|
||
```shell | ||
$ cd [Milvus sourcecode path]/core | ||
$ ./ubuntu_build_deps.sh | ||
``` | ||
|
||
### Step 2 Build | ||
|
||
```shell | ||
$ cd [Milvus sourcecode path]/core | ||
$ ./build.sh -t Debug | ||
or | ||
$ ./build.sh -t Release | ||
``` | ||
|
||
When the build is completed, all the stuff that you need in order to run Milvus will be installed under `[Milvus root path]/core/milvus`. | ||
|
||
## Launch Milvus server | ||
|
||
```shell | ||
$ cd [Milvus root path]/core/milvus | ||
``` | ||
|
||
Add `lib/` directory to `LD_LIBRARY_PATH` | ||
|
||
``` | ||
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/milvus/lib | ||
``` | ||
|
||
Then start Milvus server: | ||
|
||
``` | ||
$ cd scripts | ||
$ ./start_server.sh | ||
``` | ||
|
||
To stop Milvus server, run: | ||
|
||
```shell | ||
$ ./stop_server.sh | ||
``` |