1.源码&文档地址
- hugegraph-server源码下载地址:https://github.com/apache/incubator-hugegraph-doc/blob/master/download.md
.如果下载太慢可以用bd网盘:链接:https://pan.baidu.com/s/1lJ83BQtyN2tqNYeau6CsWA?pwd=1fbx
提取码:1fbx - hugegraph官方文档:https://hugegraph.apache.org/cn/docs/
2.环境准备
- jdk:1.8+
- mysql:8.0.x
- hugegraph-server:0.12.0
- 操作系统:windows
3.环境搭建(单图)
3.1将下载好的源码导入idea
3.2修改配置文件
3.2.1修改gremlin-server.yaml
gremlin-server.yaml位于hugegraph-dist\src\assembly\static\conf\下
- 由于win的路径问题,默认配置files: [conf/empty-sample.groovy]会找不到empty-sample.groovy这个文件,这里有两种解决办法
- 将files: [conf/empty-sample.groovy]注释掉
- 将empty-sample.groovy文件copy到/下,并修改file为files: [empty-sample.groovy]
3.2.2修改rest-server.properties
rest-server.properties位于hugegraph-dist\src\assembly\static\conf\下
- 如果要对外访问,将restserver.url的host修改为0.0.0.0
- 将graphs的值改为graphs包的绝对路径
3.2.3修改hugegraph.properties
hugegraph.properties位于hugegraph-dist\src\assembly\static\conf\graphs下
gremlin.graph=com.baidu.hugegraph.HugeFactory
vertex.cache_type=l2
edge.cache_type=l2
# schema illegal name template
#schema.illegal_name_regex=\s+|~.*
#vertex.default_label