diff --git a/content/cn/docs/config/config-guide.md b/content/cn/docs/config/config-guide.md index 43517a45c..ef6e5dc7b 100644 --- a/content/cn/docs/config/config-guide.md +++ b/content/cn/docs/config/config-guide.md @@ -146,7 +146,7 @@ ssl: { - host:部署 GremlinServer 机器的机器名或 IP,目前 HugeGraphServer 不支持分布式部署,且 GremlinServer 不直接暴露给用户; - port:部署 GremlinServer 机器的端口; -同时需要在 rest-server.properties 中增加对应的配置项 gremlinserver.url=http://host:port +同时需要在 rest-server.properties 中增加对应的配置项 gremlinserver.url=host:port ### 3 rest-server.properties @@ -155,10 +155,10 @@ rest-server.properties 文件的默认内容如下: ```properties # bind url # could use '0.0.0.0' or specified (real)IP to expose external network access -restserver.url=http://127.0.0.1:8080 +restserver.url=127.0.0.1:8080 #restserver.enable_graphspaces_filter=false # gremlin server url, need to be consistent with host and port in gremlin-server.yaml -#gremlinserver.url=http://127.0.0.1:8182 +#gremlinserver.url=127.0.0.1:8182 graphs=./conf/graphs @@ -210,12 +210,12 @@ memory_monitor.threshold=0.85 memory_monitor.period=2000 ``` -- restserver.url:RestServer 提供服务的 url,根据实际环境修改。如果其他 IP 地址无法访问,可以尝试修改为特定的地址;或修改为 `http://0.0.0.0` 来监听来自任何 IP 地址的请求,这种方案较为便捷,但需要留意服务可被访问的网络范围; +- restserver.url:RestServer 提供服务的 url,根据实际环境修改。如果其他 IP 地址无法访问,可以尝试修改为特定的地址;或修改为 `0.0.0.0` 来监听来自任何 IP 地址的请求,这种方案较为便捷,但需要留意服务可被访问的网络范围; - graphs:RestServer 启动时也需要打开图,该项为 map 结构,key 是图的名字,value 是该图的配置文件路径; > 注意:gremlin-server.yaml 和 rest-server.properties 都包含 graphs 配置项,而 `init-store` 命令是根据 gremlin-server.yaml 的 graphs 下的图进行初始化的。 -> 配置项 gremlinserver.url 是 GremlinServer 为 RestServer 提供服务的 url,该配置项默认为 http://localhost:8182,如需修改,需要和 gremlin-server.yaml 中的 host 和 port 相匹配; +> 配置项 gremlinserver.url 是 GremlinServer 为 RestServer 提供服务的 url,该配置项默认为 localhost:8182,如需修改,需要和 gremlin-server.yaml 中的 host 和 port 相匹配; ### 4 hugegraph.properties diff --git a/content/cn/docs/config/config-option.md b/content/cn/docs/config/config-option.md index 7719ac4b7..bcfac865b 100644 --- a/content/cn/docs/config/config-option.md +++ b/content/cn/docs/config/config-option.md @@ -26,7 +26,7 @@ weight: 2 | graphs | [hugegraph:conf/hugegraph.properties] | The map of graphs' name and config file. | | server.id | server-1 | The id of rest server, used for license verification. | | server.role | master | The role of nodes in the cluster, available types are [master, worker, computer] | -| restserver.url | http://127.0.0.1:8080 | The url for listening of rest server. | +| restserver.url | 127.0.0.1:8080 | The url for listening of rest server. | | ssl.keystore_file | server.keystore | The path of server keystore file used when https protocol is enabled. | | ssl.keystore_password | | The password of the path of the server keystore file used when the https protocol is enabled. | | restserver.max_worker_threads | 2 * CPUs | The maximum worker threads of rest server. | @@ -34,7 +34,7 @@ weight: 2 | restserver.request_timeout | 30 | The time in seconds within which a request must complete, -1 means no timeout. | | restserver.connection_idle_timeout | 30 | The time in seconds to keep an inactive connection alive, -1 means no timeout. | | restserver.connection_max_requests | 256 | The max number of HTTP requests allowed to be processed on one keep-alive connection, -1 means unlimited. | -| gremlinserver.url | http://127.0.0.1:8182 | The url of gremlin server. | +| gremlinserver.url | 127.0.0.1:8182 | The url of gremlin server. | | gremlinserver.max_route | 8 | The max route number for gremlin server. | | gremlinserver.timeout | 30 | The timeout in seconds of waiting for gremlin server. | | batch.max_edges_per_batch | 2500 | The maximum number of edges submitted per batch. | diff --git a/content/cn/docs/quickstart/hugegraph/hugegraph-server.md b/content/cn/docs/quickstart/hugegraph/hugegraph-server.md index 9aad3501c..567294b93 100644 --- a/content/cn/docs/quickstart/hugegraph/hugegraph-server.md +++ b/content/cn/docs/quickstart/hugegraph/hugegraph-server.md @@ -174,7 +174,7 @@ bin/hugegraph deploy -v {hugegraph-version} -p {install-path} [-u {download-path HugeGraphServer 启动时会连接后端存储并尝试检查后端存储版本号,如果未初始化后端或者后端已初始化但版本不匹配时(旧版本数据),HugeGraphServer 会启动失败,并给出错误信息。 -如果需要外部访问 HugeGraphServer,请修改 `rest-server.properties` 的 `restserver.url` 配置项(默认为 `http://127.0.0.1:8080`),修改成机器名或 IP 地址。 +如果需要外部访问 HugeGraphServer,请修改 `rest-server.properties` 的 `restserver.url` 配置项(默认为 `127.0.0.1:8080`),修改成机器名或 IP 地址。 由于各种后端所需的配置(hugegraph.properties)及启动步骤略有不同,下面逐一对各后端的配置及启动做介绍。 @@ -232,8 +232,8 @@ usePD=true 节点 1(主节点): ```properties usePD=true -restserver.url=http://127.0.0.1:8081 -gremlinserver.url=http://127.0.0.1:8181 +restserver.url=127.0.0.1:8081 +gremlinserver.url=127.0.0.1:8181 pd.peers=127.0.0.1:8686 rpc.server_host=127.0.0.1 @@ -246,8 +246,8 @@ server.role=master 节点 2(工作节点): ```properties usePD=true -restserver.url=http://127.0.0.1:8082 -gremlinserver.url=http://127.0.0.1:8182 +restserver.url=127.0.0.1:8082 +gremlinserver.url=127.0.0.1:8182 pd.peers=127.0.0.1:8686 rpc.server_host=127.0.0.1 @@ -744,7 +744,7 @@ _说明_ ``` vim conf/rest-server.properties - restserver.url=http://0.0.0.0:8080 + restserver.url=0.0.0.0:8080 ``` 响应体如下: diff --git a/content/en/docs/config/config-guide.md b/content/en/docs/config/config-guide.md index 8857010dc..6b70b6da9 100644 --- a/content/en/docs/config/config-guide.md +++ b/content/en/docs/config/config-guide.md @@ -144,7 +144,7 @@ By default, the GremlinServer serves at `localhost:8182`. If you need to modify - `host`: The hostname or IP address of the machine where the GremlinServer is deployed. Currently, HugeGraphServer does not support distributed deployment, and GremlinServer is not directly exposed to users. - `port`: The port number of the machine where the GremlinServer is deployed. -Additionally, you need to add the corresponding configuration `gremlinserver.url=http://host:port` in `rest-server.properties`. +Additionally, you need to add the corresponding configuration `gremlinserver.url=host:port` in `rest-server.properties`. ### 3. rest-server.properties @@ -153,10 +153,10 @@ The default content of the `rest-server.properties` file is as follows: ```properties # bind url # could use '0.0.0.0' or specified (real)IP to expose external network access -restserver.url=http://127.0.0.1:8080 +restserver.url=127.0.0.1:8080 #restserver.enable_graphspaces_filter=false # gremlin server url, need to be consistent with host and port in gremlin-server.yaml -#gremlinserver.url=http://127.0.0.1:8182 +#gremlinserver.url=127.0.0.1:8182 graphs=./conf/graphs @@ -208,12 +208,12 @@ memory_monitor.threshold=0.85 memory_monitor.period=2000 ``` -- `restserver.url`: The URL at which the RestServer provides its services. Modify it according to the actual environment. If you can't connet to server from other IP address, try to modify it as specific IP; or modify it as `http://0.0.0.0` to listen all network interfaces as a convenient solution, but need to take care of the network area that might access. +- `restserver.url`: The URL at which the RestServer provides its services. Modify it according to the actual environment. If you can't connet to server from other IP address, try to modify it as specific IP; or modify it as `0.0.0.0` to listen all network interfaces as a convenient solution, but need to take care of the network area that might access. - `graphs`: The RestServer also needs to open graphs when it starts. This option is a map structure where the key is the name of the graph and the value is the configuration file path for that graph. > Note: Both `gremlin-server.yaml` and `rest-server.properties` contain the `graphs` configuration option, and the `init-store` command initializes based on the graphs specified in the `graphs` section of `gremlin-server.yaml`. -> The `gremlinserver.url` configuration option is the URL at which the GremlinServer provides services to the RestServer. By default, it is set to `http://localhost:8182`. If you need to modify it, it should match the `host` and `port` settings in `gremlin-server.yaml`. +> The `gremlinserver.url` configuration option is the URL at which the GremlinServer provides services to the RestServer. By default, it is set to `localhost:8182`. If you need to modify it, it should match the `host` and `port` settings in `gremlin-server.yaml`. ### 4. hugegraph.properties diff --git a/content/en/docs/config/config-option.md b/content/en/docs/config/config-option.md index e6a074e28..c7cfca282 100644 --- a/content/en/docs/config/config-option.md +++ b/content/en/docs/config/config-option.md @@ -26,7 +26,7 @@ Corresponding configuration file `rest-server.properties` | graphs | [hugegraph:conf/hugegraph.properties] | The map of graphs' name and config file. | | server.id | server-1 | The id of rest server, used for license verification. | | server.role | master | The role of nodes in the cluster, available types are [master, worker, computer] | -| restserver.url | http://127.0.0.1:8080 | The url for listening of rest server. | +| restserver.url | 127.0.0.1:8080 | The url for listening of rest server. | | ssl.keystore_file | server.keystore | The path of server keystore file used when https protocol is enabled. | | ssl.keystore_password | | The password of the path of the server keystore file used when the https protocol is enabled. | | restserver.max_worker_threads | 2 * CPUs | The maximum worker threads of rest server. | @@ -34,7 +34,7 @@ Corresponding configuration file `rest-server.properties` | restserver.request_timeout | 30 | The time in seconds within which a request must complete, -1 means no timeout. | | restserver.connection_idle_timeout | 30 | The time in seconds to keep an inactive connection alive, -1 means no timeout. | | restserver.connection_max_requests | 256 | The max number of HTTP requests allowed to be processed on one keep-alive connection, -1 means unlimited. | -| gremlinserver.url | http://127.0.0.1:8182 | The url of gremlin server. | +| gremlinserver.url | 127.0.0.1:8182 | The url of gremlin server. | | gremlinserver.max_route | 8 | The max route number for gremlin server. | | gremlinserver.timeout | 30 | The timeout in seconds of waiting for gremlin server. | | batch.max_edges_per_batch | 2500 | The maximum number of edges submitted per batch. | diff --git a/content/en/docs/quickstart/hugegraph/hugegraph-server.md b/content/en/docs/quickstart/hugegraph/hugegraph-server.md index 921577d1d..0789e01ea 100644 --- a/content/en/docs/quickstart/hugegraph/hugegraph-server.md +++ b/content/en/docs/quickstart/hugegraph/hugegraph-server.md @@ -248,8 +248,8 @@ If configuring multiple HugeGraph-Server nodes, you need to modify the `rest-ser Node 1 (Master node): ```properties usePD=true -restserver.url=http://127.0.0.1:8081 -gremlinserver.url=http://127.0.0.1:8181 +restserver.url=127.0.0.1:8081 +gremlinserver.url=127.0.0.1:8181 pd.peers=127.0.0.1:8686 rpc.server_host=127.0.0.1 @@ -262,8 +262,8 @@ server.role=master Node 2 (Worker node): ```properties usePD=true -restserver.url=http://127.0.0.1:8082 -gremlinserver.url=http://127.0.0.1:8182 +restserver.url=127.0.0.1:8082 +gremlinserver.url=127.0.0.1:8182 pd.peers=127.0.0.1:8686 rpc.server_host=127.0.0.1 @@ -758,7 +758,7 @@ _explanation_ ``` vim conf/rest-server.properties - restserver.url=http://0.0.0.0:8080 + restserver.url=0.0.0.0:8080 ``` response body: