dosubot[bot] commented on issue #2667:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2667#issuecomment-2374498133

   <!-- Answer -->
   To start a single HugeGraph cluster with `backend=rocksdb`, follow these 
steps:
   
   1. **Update `hugegraph.properties`**:
       ```properties
       backend=rocksdb
       serializer=binary
       rocksdb.data_path=.
       rocksdb.wal_path=.
       ```
   
   2. **Initialize the database** (required on first startup or if a new 
configuration was manually added under 'conf/graphs/'):
       ```bash
       cd *hugegraph-${version}
       bin/init-store.sh
       ```
   
   3. **Update `rest-server.properties`**:
       ```properties
       restserver.url=http://127.0.0.1:8080
       gremlinserver.url=http://127.0.0.1:8182
       graphs=[hugegraph:conf/hugegraph.properties]
       ```
   
   4. **Update `gremlin-server.yaml`**:
       ```yaml
       host: 127.0.0.1
       port: 8182
       graphs: {
         hugegraph: conf/hugegraph.properties
       }
       ```
   
   5. **Start the server**:
       ```bash
       bin/start-hugegraph.sh
       Starting HugeGraphServer...
       Connecting to HugeGraphServer (http://127.0.0.1:8080/graphs)....OK
       ```
   
   6. **Verify the server and graphs**:
       ```bash
       curl http://127.0.0.1:8080/graphs/
       ```
   
       This will list the available graphs, including the one configured with 
RocksDB.
   
   This will start the HugeGraph server with RocksDB as the backend 
<sup>[[1]](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/en/docs/quickstart/hugegraph-server.md)</sup><sup>[[2]](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/en/docs/config/config-guide.md)</sup><sup>[[3]](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/cn/docs/config/config-guide.md)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to