mirror of https://github.com/milvus-io/milvus.git
Merge branch 'branch-0.3.0' into 'branch-0.3.0'
change port See merge request megasearch/vecwise_engine!113 Former-commit-id: 23b2d9db058ff243370ca00011d119b4fcf4c679pull/191/head
commit
9ddd1b5c84
|
@ -1,10 +1,10 @@
|
|||
server_config:
|
||||
address: 0.0.0.0
|
||||
port: 33001
|
||||
port: 19530
|
||||
transfer_protocol: binary #optional: binary, compact, json
|
||||
server_mode: thread_pool #optional: simple, thread_pool
|
||||
gpu_index: 0 #which gpu to be used
|
||||
mode: single #optional: single, cluster
|
||||
mode: single #optional: single, cluster
|
||||
|
||||
db_config:
|
||||
db_path: /tmp/milvus
|
||||
|
|
|
@ -25,7 +25,7 @@ main(int argc, char *argv[]) {
|
|||
{NULL, 0, 0, 0}};
|
||||
|
||||
int option_index = 0;
|
||||
std::string address = "127.0.0.1", port = "33001";
|
||||
std::string address = "127.0.0.1", port = "19530";
|
||||
app_name = argv[0];
|
||||
|
||||
int value;
|
||||
|
@ -62,7 +62,7 @@ print_help(const std::string &app_name) {
|
|||
printf("\n Usage: %s [OPTIONS]\n\n", app_name.c_str());
|
||||
printf(" Options:\n");
|
||||
printf(" -s --server Server address, default 127.0.0.1\n");
|
||||
printf(" -p --port Server port, default 33001\n");
|
||||
printf(" -p --port Server port, default 19530\n");
|
||||
printf(" -h --help Print help information\n");
|
||||
printf("\n");
|
||||
}
|
|
@ -47,7 +47,7 @@ MilvusServer::StartService() {
|
|||
ConfigNode server_config = config.GetConfig(CONFIG_SERVER);
|
||||
|
||||
std::string address = server_config.GetValue(CONFIG_SERVER_ADDRESS, "127.0.0.1");
|
||||
int32_t port = server_config.GetInt32Value(CONFIG_SERVER_PORT, 33001);
|
||||
int32_t port = server_config.GetInt32Value(CONFIG_SERVER_PORT, 19530);
|
||||
std::string protocol = server_config.GetValue(CONFIG_SERVER_PROTOCOL, "binary");
|
||||
std::string mode = server_config.GetValue(CONFIG_SERVER_MODE, "thread_pool");
|
||||
|
||||
|
|
Loading…
Reference in New Issue