diff --git a/hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh b/hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh index c01a8aed17..0b4733fc62 100755 --- a/hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh +++ b/hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh @@ -35,6 +35,9 @@ PID_FILE=$BIN/pid . $BIN/util.sh GREMLIN_SERVER_URL=`read_property "$CONF/rest-server.properties" "gremlinserver.url"` +if [ -z "$GREMLIN_SERVER_URL" ]; then + GREMLIN_SERVER_URL="http://127.0.0.1:8182" +fi REST_SERVER_URL=`read_property "$CONF/rest-server.properties" "restserver.url"` check_port "$GREMLIN_SERVER_URL" diff --git a/hugegraph-dist/src/assembly/static/conf/gremlin-server.yaml b/hugegraph-dist/src/assembly/static/conf/gremlin-server.yaml index 1bb238f24b..e9229531e1 100644 --- a/hugegraph-dist/src/assembly/static/conf/gremlin-server.yaml +++ b/hugegraph-dist/src/assembly/static/conf/gremlin-server.yaml @@ -1,5 +1,3 @@ -host: 127.0.0.1 -port: 8182 scriptEvaluationTimeout: 30000 # If you want to start gremlin-server for gremlin-console(web-socket), # please change `HttpChannelizer` to `WebSocketChannelizer` or comment this line. diff --git a/hugegraph-dist/src/assembly/static/conf/rest-server.properties b/hugegraph-dist/src/assembly/static/conf/rest-server.properties index ed1bd6dcb4..d5c87dc7bf 100644 --- a/hugegraph-dist/src/assembly/static/conf/rest-server.properties +++ b/hugegraph-dist/src/assembly/static/conf/rest-server.properties @@ -1,9 +1,6 @@ # bind url restserver.url=http://127.0.0.1:8080 -# gremlin url to connect -gremlinserver.url=http://127.0.0.1:8182 - # graphs list with pair NAME:CONF_PATH graphs=[hugegraph:conf/hugegraph.properties]