提交 9ddd1b5c 编写于 作者: J jinhai

Merge branch 'branch-0.3.0' into 'branch-0.3.0'

change port

See merge request megasearch/vecwise_engine!113

Former-commit-id: 23b2d9db058ff243370ca00011d119b4fcf4c679
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");
}
\ No newline at end of file
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册