我的neo4j在Ubuntu上安装在哪里?

时间:2018-02-11 05:17:51

标签: ubuntu neo4j cypher neo4j-apoc

我在网上遵循了一些说明并安装了Neo4j,但并不确定它的安装位置。

bin$ whereis neo4j
neo4j: /usr/bin/neo4j /etc/neo4j /usr/share/neo4j /usr/share/man/man1/neo4j.1.gz

~$ ls /var/lib/neo4j/                                                                                                                                                                                                                                          
certificates  data  import  plugins   

我想安装neo4j APOC库,并下载了apoc-3.3.0.1-all.jar并将其复制到:

/var/lib/neo4j/plugins

然后在Neo4j浏览器中输入:

return apoc.help('apoc')

我收到了这个错误:

Neo.ClientError.Statement.SyntaxError
Unknown function 'apoc.help' (line 1, column 16 (offset: 15))
"return apoc.help('apoc')"

所以我认为我的apoc库没有被复制到正确的位置。我的neo4j实际安装在哪里?我在下面运行了这个命令。我的目的是在我的Ubuntu机器上安装APOC for neo4j。

$ sudo dpkg -L neo4j
/.
/var
/var/log
/var/log/neo4j
/var/lib
/var/lib/neo4j
/var/lib/neo4j/import
/var/lib/neo4j/plugins
/var/lib/neo4j/data
/var/lib/neo4j/data/databases
/etc
/etc/neo4j
/etc/neo4j/neo4j.conf
/etc/init.d
/etc/init.d/neo4j
/etc/default
/etc/default/neo4j
/usr
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/neo4j-shell.1.gz
/usr/share/man/man1/neo4j.1.gz
/usr/share/man/man1/neo4j-admin.1.gz
/usr/share/man/man1/neo4j-import.1.gz
/usr/share/neo4j
/usr/share/neo4j/tools
/usr/share/neo4j/tools/2.x-config-migrator.jar
/usr/share/neo4j/bin
/usr/share/neo4j/bin/tools
/usr/share/neo4j/bin/tools/2.x-config-migrator.jar
/usr/share/neo4j/bin/neo4j
/usr/share/neo4j/bin/neo4j-shell
/usr/share/neo4j/bin/neo4j-import
/usr/share/neo4j/bin/neo4j-admin
/usr/share/neo4j/lib
/usr/share/neo4j/lib/neo4j-command-line-3.3.0.jar
/usr/share/neo4j/lib/jackson-core-asl-1.9.13.jar
/usr/share/neo4j/lib/neo4j-cypher-frontend-3.3-3.3.0.jar
/usr/share/neo4j/lib/jersey-servlet-1.19.jar
/usr/share/neo4j/lib/neo4j-codegen-3.3.0.jar
/usr/share/neo4j/lib/neo4j-resource-3.3.0.jar
/usr/share/neo4j/lib/neo4j-cypher-ir-3.3-3.3.0.jar
/usr/share/neo4j/lib/jetty-http-9.2.22.v20170606.jar
/usr/share/neo4j/lib/commons-configuration-1.10.jar
/usr/share/neo4j/lib/commons-lang-2.6.jar
/usr/share/neo4j/lib/jetty-util-9.2.22.v20170606.jar
/usr/share/neo4j/lib/jetty-servlet-9.2.22.v20170606.jar
/usr/share/neo4j/lib/neo4j-csv-3.3.0.jar
/usr/share/neo4j/lib/neo4j-unsafe-3.3.0.jar
/usr/share/neo4j/lib/neo4j-server-3.3.0.jar
/usr/share/neo4j/lib/caffeine-2.3.3.jar
/usr/share/neo4j/lib/commons-logging-1.1.1.jar
/usr/share/neo4j/lib/neo4j-bolt-3.3.0.jar
/usr/share/neo4j/lib/jsr311-api-1.1.2.r612.jar
/usr/share/neo4j/lib/lucene-analyzers-common-5.5.0.jar
/usr/share/neo4j/lib/jackson-jaxrs-1.9.13.jar
/usr/share/neo4j/lib/mimepull-1.9.3.jar
/usr/share/neo4j/lib/neo4j-cypher-frontend-3.1-3.1.6.jar
/usr/share/neo4j/lib/parboiled-scala_2.11-1.1.7.jar
/usr/share/neo4j/lib/neo4j-shell-3.3.0.jar
/usr/share/neo4j/lib/commons-text-1.1.jar
/usr/share/neo4j/lib/server-api-3.3.0.jar
/usr/share/neo4j/lib/jackson-mapper-asl-1.9.13.jar
/usr/share/neo4j/lib/neo4j-graph-matching-3.1.6.jar
/usr/share/neo4j/lib/neo4j-security-3.3.0.jar
/usr/share/neo4j/lib/neo4j-kernel-3.3.0.jar
/usr/share/neo4j/lib/scala-reflect-2.11.11.jar
/usr/share/neo4j/lib/neo4j-cypher-frontend-3.2-3.2.5.jar
/usr/share/neo4j/lib/neo4j-primitive-collections-3.3.0.jar
/usr/share/neo4j/lib/jetty-io-9.2.22.v20170606.jar
/usr/share/neo4j/lib/neo4j-cypher-frontend-2.3-2.3.11.jar
/usr/share/neo4j/lib/neo4j-cypher-compiler-2.3-2.3.11.jar
/usr/share/neo4j/lib/opencsv-2.3.jar
/usr/share/neo4j/lib/neo4j-jmx-3.3.0.jar
/usr/share/neo4j/lib/rhino-1.7R4.jar
/usr/share/neo4j/lib/neo4j-values-3.3.0.jar
/usr/share/neo4j/lib/neo4j-cypher-3.3.0.jar
/usr/share/neo4j/lib/neo4j-common-3.3.0.jar
/usr/share/neo4j/lib/javax.servlet-api-3.1.0.jar
/usr/share/neo4j/lib/neo4j-configuration-3.3.0.jar
/usr/share/neo4j/lib/neo4j-browser-3.0.11.jar
/usr/share/neo4j/lib/neo4j-cypher-compiler-3.2-3.2.5.jar
/usr/share/neo4j/lib/jetty-xml-9.2.22.v20170606.jar
/usr/share/neo4j/lib/jline-2.12.jar
/usr/share/neo4j/lib/neo4j-cypher-ir-3.2-3.2.5.jar
/usr/share/neo4j/lib/scala-library-2.11.11.jar
/usr/share/neo4j/lib/neo4j-logging-3.3.0.jar
/usr/share/neo4j/lib/jetty-server-9.2.22.v20170606.jar
/usr/share/neo4j/lib/neo4j-cypher-logical-plans-3.3-3.3.0.jar
/usr/share/neo4j/lib/concurrentlinkedhashmap-lru-1.4.2.jar
/usr/share/neo4j/lib/neo4j-io-3.3.0.jar
/usr/share/neo4j/lib/parboiled-core-1.1.7.jar
/usr/share/neo4j/lib/neo4j-ssl-3.3.0.jar
/usr/share/neo4j/lib/commons-io-2.4.jar
/usr/share/neo4j/lib/neo4j-udc-3.3.0.jar
/usr/share/neo4j/lib/neo4j-graphdb-api-3.3.0.jar
/usr/share/neo4j/lib/neo4j-dbms-3.3.0.jar
/usr/share/neo4j/lib/commons-compress-1.12.jar
/usr/share/neo4j/lib/bcprov-jdk15on-1.53.jar
/usr/share/neo4j/lib/neo4j-lucene-upgrade-3.3.0.jar
/usr/share/neo4j/lib/jersey-server-1.19.jar
/usr/share/neo4j/lib/neo4j-graph-algo-3.3.0.jar
/usr/share/neo4j/lib/neo4j-consistency-check-3.3.0.jar
/usr/share/neo4j/lib/jersey-multipart-1.19.jar
/usr/share/neo4j/lib/neo4j-import-tool-3.3.0.jar
/usr/share/neo4j/lib/jetty-webapp-9.2.22.v20170606.jar
/usr/share/neo4j/lib/jersey-core-1.19.jar
/usr/share/neo4j/lib/neo4j-collections-3.3.0.jar
/usr/share/neo4j/lib/neo4j-lucene-index-3.3.0.jar
/usr/share/neo4j/lib/neo4j-index-3.3.0.jar
/usr/share/neo4j/lib/lucene-core-5.5.0.jar
/usr/share/neo4j/lib/lucene-codecs-5.5.0.jar
/usr/share/neo4j/lib/bcpkix-jdk15on-1.53.jar
/usr/share/neo4j/lib/neo4j-cypher-compiler-3.3-3.3.0.jar
/usr/share/neo4j/lib/lucene-queryparser-5.5.0.jar
/usr/share/neo4j/lib/netty-all-4.1.15.Final.jar
/usr/share/neo4j/lib/jetty-security-9.2.22.v20170606.jar
/usr/share/neo4j/lib/neo4j-cypher-compiler-3.1-3.1.6.jar
/usr/share/neo4j/lib/commons-lang3-3.5.jar
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/neo4j
/usr/share/doc
/usr/share/doc/neo4j
/usr/share/doc/neo4j/changelog.gz
/usr/share/doc/neo4j/UPGRADE.txt
/usr/share/doc/neo4j/LICENSES.txt.gz
/usr/share/doc/neo4j/README.txt
/usr/share/doc/neo4j/copyright
/usr/bin
/usr/bin/neo4j
/usr/bin/neo4j-shell
/usr/bin/neo4j-import
/usr/bin/neo4j-admin
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/neo4j.service

2 个答案:

答案 0 :(得分:0)

apoc.helpprocedure,而不是function。要调用过程,必须使用CALL子句。

试试这个:

CALL apoc.help('apoc');

答案 1 :(得分:0)

您可能更愿意将服务器版本下载为存档,以便随时将其解压缩。 过了一段时间,你的开发站上会有很多版本。

所以Neo4j创造了" Neo4j桌面"这是一个管理你的数据库的GUI。 它安装的所有东西都在〜/ .Config / Neo4j桌面