日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

JanusGraph(HugeGraph通用): 可视化 GraphEXP 插件安装

發布時間:2024/8/23 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 JanusGraph(HugeGraph通用): 可视化 GraphEXP 插件安装 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

JanusGraph: 可視化 Gephi 插件安裝可參考:https://datamining.blog.csdn.net/article/details/103894994

下載地址:https://github.com/bricaud/graphexp

安裝

解壓,在根目錄下修改?graphexp.html

<div class="nav input_unit_container"><label class="nav input_label" for="server_address">Server Address:</label><input name="server_address" id="server_address" value="localhost" /> </div> <div class="nav input_unit_container"><label class="nav input_label" for="server_port">Server port:</label><input name="server_port" id="server_port" type="number" value="8182"/> </div>

修改為,192.168.2.111:8182?為JanusGraph服務端口

<div class="nav input_unit_container"><label class="nav input_label" for="server_address">Server Address:</label><input name="server_address" id="server_address" value="192.168.1.111" /> </div> <div class="nav input_unit_container"><label class="nav input_label" for="server_port">Server port:</label><input name="server_port" id="server_port" type="number" value="8182"/> </div>

安裝ngix?參考:https://www.runoob.com/linux/nginx-install-setup.html

修改配置文件?vim /usr/local/webserver/nginx/conf/nginx.conf

error_log /var/log/error.log debug; #制定日志路徑,級別。這個設置可以放入全局塊,http塊,server塊,級別以此為:debug|info|notice|warn|error|crit|alert|emerg events {accept_mutex on; #設置網路連接序列化,防止驚群現象發生,默認為onmulti_accept on; #設置一個進程是否同時接受多個網絡連接,默認為off#use epoll; #事件驅動模型,select|poll|kqueue|epoll|resig|/dev/poll|eventportworker_connections 1024; #最大連接數,默認為512 } http {include mime.types; #文件擴展名與文件類型映射表default_type application/octet-stream; #默認文件類型,默認為text/plain#access_log off; #取消服務日志log_format myFormat '$remote_addr–$remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for'; #自定義格式access_log /var/log/access.log myFormat; #combined為日志格式的默認值sendfile on; #允許sendfile方式傳輸文件,默認為off,可以在http塊,server塊,location塊。sendfile_max_chunk 100k; #每個進程每次調用傳輸數量不能大于設定的值,默認為0,即不設上限。keepalive_timeout 65; #連接超時時間,默認為75s,可以在http,server,location塊。upstream mysvr {server 127.0.0.1:7878;server 192.168.10.121:3333 backup; #熱備}error_page 404 https://www.baidu.com; #錯誤頁server {keepalive_requests 120; #單連接請求上限次數。listen 4545; #監聽端口server_name 192.168.2.111; #監聽地址location ~*^.+$ { #請求的url過濾,正則匹配,~為區分大小寫,~*為不區分大小寫。root /opt/graphexp-master; #插件目錄}} }

啟動服務:/usr/local/webserver/nginx/sbin/nginx

訪問 :?http://192.168.2.111:4545/graphexp.html

提示如下成功

?

?測試效果

打開 gremlin.sh?

注意:conf/remote.yaml?文件中配置著JanusGraph服務端口

$ bin/gremlin.sh \,,,/(o o) -----oOOo-(3)-oOOo----- SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/zhonghong/jast/graph/janus/janusgraph-0.3.2-hadoop2/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/zhonghong/jast/graph/janus/janusgraph-0.3.2-hadoop2/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] plugin activated: janusgraph.imports plugin activated: tinkerpop.server plugin activated: tinkerpop.gephi plugin activated: tinkerpop.utilities 19:45:30 WARN org.apache.hadoop.util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable plugin activated: tinkerpop.hadoop plugin activated: tinkerpop.spark plugin activated: tinkerpop.tinkergraph gremlin> :remote connect tinkerpop.server conf/remote.yaml ==>Configured 192.168.2.116:8182 gremlin> :> graph.addVertex("name", "stephen") ==>v[4128] gremlin> :> g.V().values('name') ==>stephen gremlin>

數據插入成功,查詢?

?

總結

以上是生活随笔為你收集整理的JanusGraph(HugeGraph通用): 可视化 GraphEXP 插件安装的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。