diff --git a/cpp/README.md b/cpp/README.md index c870304ea4383c2ee27dfed64b84bd14fa3377fd..f65e97383259c61e53deecd142304ccde729fc3a 100644 --- a/cpp/README.md +++ b/cpp/README.md @@ -32,19 +32,29 @@ cmake_build/src/libvecwise_engine.a is the static library ./build.sh --unittest -### Luanch server +### Launch server Set config in cpp/conf/server_config.yaml -Then luanch server with config: +Then launch server with config: cd [build output path] start_server.sh stop_server.sh -### Luanch test_client(only for debug) +### Launch test_client(only for debug) If you want to test remote api, you can build test_client. test_client use same config file with server: cd [build output path]/test_client test_client -c [sourcecode path]/cpp/conf/server_config.yaml +### License Generate +Use get_sys_info to get system info file. + + ./get_sys_info # system.info will be generated + +Use license_generator to generate license file. + + ./license_generator -s system.info -l system.license -b 2019-05-15 -e 2019-08-14 + +Copy the license file to path assigned by license_path in server config file. \ No newline at end of file diff --git a/cpp/conf/server_config.yaml b/cpp/conf/server_config.yaml index bb109d535272914e2c32cfdda5ac479a2dbcedb4..40d10d0a5a6fa28d7905fb6c3df24f9728404135 100644 --- a/cpp/conf/server_config.yaml +++ b/cpp/conf/server_config.yaml @@ -11,7 +11,7 @@ db_config: idmapper_max_open_file: 128 license_config: - license_path: "/tmp/megasearch/abc.license" + license_path: "/home/jinhai/Documents/development/vecwise_engine/license/system.license" log_config: global: