准备:JanusGraph环境,graphexp源码,nginx

本文采用的环境:JanusGraph + cassandra + ES + GraphExp(cassandra 或者HBase作为后端存储都是可以的,配置方式类似)

目的:为了给JanusGraph 安装可视化工具,方便过程中的学习。

一:下载graphexp源码

下载地址(官方文档): https://github.com/bricaud/graphexp

并且修改graphexp.html中的 :localhost改为服务器地址(192.168.--.--)

二:安装和配置 nginx

参考 https://www.runoob.com/linux/nginx-install-setup.html

另外也可参考 https://blog.csdn.net/qq_38872310/article/details/79805445

另外也可参考 https://blog.csdn.net/lyzf0413/article/details/82378972

1.修改配置文件: /usr/local//webserver/nginx/conf/

( /usr/local/src/nginx-1.6.2/conf 中文件暂时不改)

[root@tdh01 conf]# pwd /usr/local/webserver/nginx/conf # 当前路径
[root@tdh01 conf]# vim nginx.conf

2:启动nginx命令:/usr/local/webserver/nginx/sbin/nginx

或者进入nginx安装目录sbin下,输入命令 ./nginx

启动之后查看是否成功启动nginx;

$ 如果成功的话,浏览器访问能看到欢迎页面:(http://服务器的IP:80)

三、配置JanusGraph Server作为WebSocket节点

参考文章:https://blog.csdn.net/zg_hover/article/details/89365799

说明:本例子的后台存储系统和索引系统都是安装在同一台机器上。这里后台外部存储系统使用的是cassandra,另外配置外部索引系统ES。

1.查看配置文件:conf/janusgraph-cassandra.properties 中的以下配置项是否正确:

复制conf/janusgraph-cassandra.properties配置文件到./conf/gremlin-server目录下:

cp janusgraph-cassandra.properties gremlin-server/socket-janusgraph-cassandra-server.properties

2.准备gremlin-server.yaml配置文件:

cp conf/gremlin-server/gremlin-server.yaml conf/gremlin-server/socket-gremlin-server.yaml

编辑 socket-gremlin-server.yaml 文件:

host和graph都需要自己调整:

3:启动 JanusGraph Server:

[root@tdh01 janusgraph-0.3.]# pwd /usr/Programe_files/JanusGraph/janusgraph-0.3.

[root@tdh01 janusgraph-0.3.]# bin/gremlin-server.sh ./conf/gremlin-server/socket-gremlin-server.yaml

再开启一个终端,并在终端中输入以下命令:

[root@tdh01 janusgraph-0.3.2]# pwd /usr/Programe_files/JanusGraph/janusgraph-0.3.2

[root@tdh01 janusgraph-0.3.2]# bin/gremlin.sh

注意:这里只是开启了一个Gremlin的终端,并没有连接JanusGraph Server。

(1) 连接JanusGraph Server(也就是Gremlin Server)

gremlin> :remote connect tinkerpop.server conf/remote.yaml

其中配置文件remote.yaml是JanusGraph Server的地址和端口。

注意:conf/remote.yaml配置文件需要更改IP地址:

(2) 添加一个顶点,并获取顶点列表

gremlin> :> graph.addVertex("name", "stephen") ==>v[256] 
gremlin> :> g.V().values('name') ==>stephen

四:浏览器中访问

确定nginx已经启动,并且8090端口已经打开被开启,就可以在浏览器中查看graphexp界面了。点击”Get graph info”按钮,可以获取到 JanusGraph 中的图数据。地址:192.168.--.---:8090/graphexp.html

注:graphexp 是和gremlin server 绑定的,只要支持gremlin server的图数据库都可以用(例如janusgraph,hugegraph)

五、总结

整个安装graphexp可视化插件过程中主要还是在修改一些配置文件,注意修改的正确,并且所需环境完备,就可以安装成功了。

参考文章:

JanusGraph实战-多种方式使用JanusGraph Server:https://blog.csdn.net/zg_hover/article/details/89365799

JanusGraph Server配置:https://www.cnblogs.com/jiyuqi/p/320267ff0b5052fad4613945e58ea1f1.html

图数据库JanusGraph与neo4j对比:https://blog.csdn.net/sinat_35045195/article/details/91387632

JanusGraph安装graphexp的更多相关文章

  1. JanusGraph 图数据库安装小记 ——以 JanusGraph 0.3.0 为例

    由于近期项目中有使用图数据的需求,经过对比,我们选择尝试使用 JanusGraph.本篇小记记录了我们安装 JanusGraph 以及需要一起集成的 Cassandra + Elasticsearch ...

  2. JanusGraph :Cassandra作为存储后端的情况下,JanusGraph的安装方法

    Cassandra作为存储后端的情况下,JanusGraph的安装方法 Cassandra作为存储后端的情况下,JanusGraph的安装分为四种方式. 分别是: 1.本地服务器模式(这里的服务器指的 ...

  3. janusgraph单机版安装

    注:本次安装janusgraph基于es和hbse,所以先安装es和hbase 1.安装jdk 2.安装janusgraph 解压安装文件至/usr/janusgraph-0.3.1 unzip ja ...

  4. JanusGraph : 图和图数据库的简介

    JanusGraph:图数据库系统简介 图(graph)是<数据结构>课中第一次接触到的一个概念,它是一种用来描述现实世界中个体和个体之间网络关系的数据结构. 为了在计算机中存储图,< ...

  5. 主流图库对比以及JanusGraph入门

    1.Overall Comparison Name Neo4j JanusGraph Giraph Jena 1.Compute Framework Yes Yes Yes 2.External Co ...

  6. yugabyte 集成JanusGraph测试

    yugabyte 集成图数据库JanusGraph,原理比较简单就是yugabyte 内置Cassandra,配置好JanusGraph 的访问就可以了. 使用docker 模式部署 创建yugaby ...

  7. 通过使用JanusGraph索引提高性能

    翻译整理:纪玉奇 Extending JanusGraph Server JanusGraph支持两种类型的索引:graph index和vertex-centric index.graph inde ...

  8. JanusGraph多图配置 (cassandra)

    JanusGraph多图配置目的 :一个端口开启后可根据句柄操作多个图 .(cassandra存储后端) 1.GremlinServer多图配置 服务器gremlin-server.yaml中可以设置 ...

  9. JanusGraph 创建索引步骤(composite index)踩坑总结

    前言 JanusGraph是一个图数据库引擎,安装及入门可以参考 JanusGraph 图数据库安装小记.为了提高查询速度,在使用过程中一般要为某些属性创建索引.这篇随笔主要是记录创建索引过程中踩过的 ...

随机推荐

  1. 洛谷P1230智力大冲浪 题解

    题目描述 小伟报名参加中央电视台的智力大冲浪节目.本次挑战赛吸引了众多参赛者,主持人为了表彰大家的勇气,先奖励每个参赛者m元.先不要太高兴!因为这些钱还不一定都是你的?!接下来主持人宣布了比赛规则: ...

  2. Js中的排他思想

    <body>     <button>按钮1</button>     <button>按钮2</button>     <butto ...

  3. 下载mqtt.fx

    #下载mqtt.fxhttp://www.jensd.de/apps/mqttfx/1.7.1/

  4. 如何保证redis数据都是热点数据

    mySQL里有2000w数据,redis中只存20w的数据,如何保证redis中的数据都是热点数据? 1.限定 Redis 占用的内存,Redis 会根据自身数据淘汰策略,加载热数据到内存.所以,计算 ...

  5. Golang(三)Goroutine原理

    前言 最近用到了一些 Golang 异步编程的地方,感觉 Golang 相对于其他语言(如 Java)对多线程编程的支持非常大,使用起来也非常方便.于是决定了解一下 Goroutine 的底层原理. ...

  6. Java编程思想之十二 通过异常处理错误

    Java的基本概念是结构不佳的代码不能运行余下的问题必须在运行期间解决,这就需要错误源能通过某种方式,把适当的信息传递给某个接收者--该接收者将知道如何正确处理这里问题. 12.1 概念 使用异常所带 ...

  7. django orm 外键id返回对应的名称

    原文:https://blog.csdn.net/gghhm/article/details/99652143 当我们在写django的orm模块时,有时候会在用外键关联时,保存的是对应表中的id字段 ...

  8. HashMap源码1

    jdk1.8之前是数组+链表的形式,后面会介绍jdk1.8对hashMap的改动:数组+链表+红黑树 transient是Java语言的关键字,用来表示一个域不是该对象串行化的一部分. 当一个对象被串 ...

  9. Linux系统下如何配置JDK1.8

    Linux系统下如何配置jdk1.8 1 jdk的下载 文件名称 jdk-8u121-linux-x64.tar.gz 下载地址 http://www.oracle.com/technetwork/j ...

  10. Windows忘记BIOS密码/操作系统密码处理办法汇总

    一.说明 关于电脑,在大学之前是知之甚少的.举几个例子,一是刚上大学时我还是分不清主机和显示器哪个才是电脑:二是应该是大一上学期陪窒友Z到电科买电脑,我问导购员XP和Win7什么关系----我一直怀疑 ...