用我自己的图启动控制台 [英] Starting the console with my own graph
本文介绍了用我自己的图启动控制台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为了试验Cypher,我想用自己的图形加载控制台.这里有两个问题:
To experiment with Cypher I wanted to load the console with my own graph. Two questions here come:
- 我可以在本地安装的服务器上吗?
- 如何提供图形配置(图形设置"部分)作为默认设置?
谢谢!
推荐答案
是的,您可以针对自己的数据库运行控制台.假设您已经正确安装了git,maven和jdk.
Yes, you can run console yourself against your own database. This assumes you have git, maven and jdk properly installed.
-
git clone git://github.com/neo4j-contrib/rabbithole.git
-
cd rabbithole
-
mvn assembly:single
-
java -cp "target/neo4j-console-jar-with-dependencies.jar" org.neo4j.community.console.Console <port> <path-to-local-db> expose
git clone git://github.com/neo4j-contrib/rabbithole.git
cd rabbithole
mvn assembly:single
java -cp "target/neo4j-console-jar-with-dependencies.jar" org.neo4j.community.console.Console <port> <path-to-local-db> expose
如果在上述最后一个命令的末尾添加暴露,它将使它真正可写.如果要只读副本,则将其保留.请注意,在运行neo4j服务器的同时,您不能在暴露的情况下运行Rabbithole,因为它们都试图锁定文件.
If you add expose to the end of the last command above, it will make it so the database is actually writable. Leave it off if you want a read-only copy. Note that you can't run rabbithole with expose at the same time that you're running neo4j server, as they both try to lock the files.
这篇关于用我自己的图启动控制台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文