Neo4j Installation

[ root @ dbversitydotcom : /neo4j ] ll -lhtr
total 56M
-rw-r–r– 1 root root 56M Oct 8 04:27 neo4j-enterprise-2.2.4-unix.tar
[ root @ dbversitydotcom : /neo4j ]
[ root @ dbversitydotcom : /neo4j ]
[ root @ dbversitydotcom : /neo4j ] tar -xvf neo4j-enterprise-2.2.4-unix.tar
./neo4j-enterprise-2.2.4/
./neo4j-enterprise-2.2.4/plugins/
./neo4j-enterprise-2.2.4/plugins/README.txt
./neo4j-enterprise-2.2.4/README.txt
./neo4j-enterprise-2.2.4/LICENSES.txt
./neo4j-enterprise-2.2.4/bin/
./neo4j-enterprise-2.2.4/bin/neo4j
./neo4j-enterprise-2.2.4/bin/README.txt
./neo4j-enterprise-2.2.4/bin/neo4j-installer
./neo4j-enterprise-2.2.4/bin/neo4j-coordinator
./neo4j-enterprise-2.2.4/bin/neo4j-backup
./neo4j-enterprise-2.2.4/bin/neo4j-shell
./neo4j-enterprise-2.2.4/bin/utils
./neo4j-enterprise-2.2.4/bin/neo4j-coordinator-shell
./neo4j-enterprise-2.2.4/bin/neo4j-arbiter
./neo4j-enterprise-2.2.4/bin/neo4j-import
./neo4j-enterprise-2.2.4/data/
./neo4j-enterprise-2.2.4/data/README.txt
./neo4j-enterprise-2.2.4/data/log/
./neo4j-enterprise-2.2.4/data/log/README.txt
./neo4j-enterprise-2.2.4/UPGRADE.txt
./neo4j-enterprise-2.2.4/LICENSE.txt
./neo4j-enterprise-2.2.4/lib/
./neo4j-enterprise-2.2.4/lib/neo4j-primitive-collections-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/org.apache.servicemix.bundles.jline-0.9.94_1.jar
./neo4j-enterprise-2.2.4/lib/neo4j-cluster-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-cypher-compiler-2.1-2.1.8.jar
./neo4j-enterprise-2.2.4/lib/parboiled-scala_2.10-1.1.7.jar
./neo4j-enterprise-2.2.4/lib/neo4j-consistency-check-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/README.txt
./neo4j-enterprise-2.2.4/lib/concurrentlinkedhashmap-lru-1.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-graph-algo-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-com-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-graph-matching-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-cypher-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-backup-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/netty-3.6.3.Final.jar
./neo4j-enterprise-2.2.4/lib/neo4j-kernel-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-unsafe-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/opencsv-2.3.jar
./neo4j-enterprise-2.2.4/lib/neo4j-shell-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/parboiled-core-1.1.7.jar
./neo4j-enterprise-2.2.4/lib/neo4j-udc-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/server-api-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-query-logging-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-cypher-compiler-1.9-2.0.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-jmx-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-io-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-cypher-compiler-2.0-2.0.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-cypher-compiler-2.2-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-ha-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-lucene-index-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/lucene-core-3.6.2.jar
./neo4j-enterprise-2.2.4/lib/slf4j-api-1.7.7.jar
./neo4j-enterprise-2.2.4/lib/neo4j-csv-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/scala-library-2.10.5.jar
./neo4j-enterprise-2.2.4/lib/neo4j-management-2.2.4.jar
./neo4j-enterprise-2.2.4/lib/neo4j-import-tool-2.2.4.jar
./neo4j-enterprise-2.2.4/system/
./neo4j-enterprise-2.2.4/system/README.txt
./neo4j-enterprise-2.2.4/system/resources/
./neo4j-enterprise-2.2.4/system/resources/org.neo4j.arbiter.plist
./neo4j-enterprise-2.2.4/system/resources/org.neo4j.server.plist
./neo4j-enterprise-2.2.4/system/lib/
./neo4j-enterprise-2.2.4/system/lib/jersey-multipart-1.19.jar
./neo4j-enterprise-2.2.4/system/lib/jackson-core-asl-1.9.13.jar
./neo4j-enterprise-2.2.4/system/lib/bcprov-jdk16-140.jar
./neo4j-enterprise-2.2.4/system/lib/logback-access-1.1.2.jar
./neo4j-enterprise-2.2.4/system/lib/README.txt
./neo4j-enterprise-2.2.4/system/lib/jetty-io-9.2.4.v20141103.jar
./neo4j-enterprise-2.2.4/system/lib/rhino-1.7R4.jar
./neo4j-enterprise-2.2.4/system/lib/javax.servlet-api-3.1.0.jar
./neo4j-enterprise-2.2.4/system/lib/jetty-http-9.2.4.v20141103.jar
./neo4j-enterprise-2.2.4/system/lib/commons-logging-1.1.1.jar
./neo4j-enterprise-2.2.4/system/lib/neo4j-server-advanced-2.2.4.jar
./neo4j-enterprise-2.2.4/system/lib/neo4j-server-2.2.4-static-web.jar
./neo4j-enterprise-2.2.4/system/lib/commons-beanutils-1.8.3.jar
./neo4j-enterprise-2.2.4/system/lib/janino-2.6.1.jar
./neo4j-enterprise-2.2.4/system/lib/jersey-servlet-1.19.jar
./neo4j-enterprise-2.2.4/system/lib/jetty-security-9.2.4.v20141103.jar
./neo4j-enterprise-2.2.4/system/lib/neo4j-server-2.2.4.jar
./neo4j-enterprise-2.2.4/system/lib/logback-core-1.1.2.jar
./neo4j-enterprise-2.2.4/system/lib/jsr311-api-1.1.2.r612.jar
./neo4j-enterprise-2.2.4/system/lib/jersey-server-1.19.jar
./neo4j-enterprise-2.2.4/system/lib/scala-reflect-2.10.5.jar
./neo4j-enterprise-2.2.4/system/lib/commons-compiler-2.6.1.jar
./neo4j-enterprise-2.2.4/system/lib/jetty-util-9.2.4.v20141103.jar
./neo4j-enterprise-2.2.4/system/lib/jetty-server-9.2.4.v20141103.jar
./neo4j-enterprise-2.2.4/system/lib/jetty-servlet-9.2.4.v20141103.jar
./neo4j-enterprise-2.2.4/system/lib/commons-digester-2.1.jar
./neo4j-enterprise-2.2.4/system/lib/rrd4j-2.2.jar
./neo4j-enterprise-2.2.4/system/lib/jackson-mapper-asl-1.9.13.jar
./neo4j-enterprise-2.2.4/system/lib/jackson-jaxrs-1.9.13.jar
./neo4j-enterprise-2.2.4/system/lib/commons-lang-2.6.jar
./neo4j-enterprise-2.2.4/system/lib/jetty-webapp-9.2.4.v20141103.jar
./neo4j-enterprise-2.2.4/system/lib/commons-configuration-1.10.jar
./neo4j-enterprise-2.2.4/system/lib/neo4j-browser-2.2.4.jar
./neo4j-enterprise-2.2.4/system/lib/commons-io-2.4.jar
./neo4j-enterprise-2.2.4/system/lib/neo4j-server-enterprise-2.2.4.jar
./neo4j-enterprise-2.2.4/system/lib/mimepull-1.9.3.jar
./neo4j-enterprise-2.2.4/system/lib/jcl-over-slf4j-1.7.7.jar
./neo4j-enterprise-2.2.4/system/lib/jetty-xml-9.2.4.v20141103.jar
./neo4j-enterprise-2.2.4/system/lib/logback-classic-1.1.2.jar
./neo4j-enterprise-2.2.4/system/lib/jersey-core-1.19.jar
./neo4j-enterprise-2.2.4/CHANGES.txt
./neo4j-enterprise-2.2.4/NOTICE.txt
./neo4j-enterprise-2.2.4/conf/
./neo4j-enterprise-2.2.4/conf/logging.properties
./neo4j-enterprise-2.2.4/conf/arbiter-wrapper.conf
./neo4j-enterprise-2.2.4/conf/README.txt
./neo4j-enterprise-2.2.4/conf/windows-wrapper-logging.properties
./neo4j-enterprise-2.2.4/conf/neo4j-http-logging.xml
./neo4j-enterprise-2.2.4/conf/custom-logback.xml
./neo4j-enterprise-2.2.4/conf/neo4j-wrapper.conf
./neo4j-enterprise-2.2.4/conf/neo4j.properties
./neo4j-enterprise-2.2.4/conf/neo4j-server.properties
./neo4j-enterprise-2.2.4/conf/jmx.access
./neo4j-enterprise-2.2.4/conf/jmx.password
[ root @ dbversitydotcom : /neo4j ]
[ root @ dbversitydotcom : /neo4j ] which java
/mariadb/jdk1.8.0_05/bin/java
[ root @ dbversitydotcom : /neo4j ]

[ root @ dbversitydotcom : /neo4j ] cd neo4j-enterprise-2.2.4
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ] ll -lhtr
total 304K
-rw-r–r– 1 1000 comp 4.3K Aug 7 06:51 UPGRADE.txt
-rw-r–r– 1 1000 comp 1.7K Aug 7 06:53 README.txt
-rw-r–r– 1 1000 comp 5.9K Aug 7 06:53 NOTICE.txt
-rw-r–r– 1 1000 comp 35K Aug 7 06:53 LICENSE.txt
-rw-r–r– 1 1000 comp 123K Aug 7 06:53 LICENSES.txt
-rw-r–r– 1 1000 comp 98K Aug 7 06:53 CHANGES.txt
drwxr-xr-x 4 1000 comp 4.0K Aug 25 17:07 system
drwxr-xr-x 2 1000 comp 4.0K Aug 25 17:07 plugins
drwxr-xr-x 2 1000 comp 4.0K Aug 25 17:07 lib
drwxr-xr-x 3 1000 comp 4.0K Aug 25 17:07 data
drwxr-xr-x 2 1000 comp 4.0K Aug 25 17:07 conf
drwxr-xr-x 2 1000 comp 4.0K Aug 25 17:07 bin
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ] bin/neo4j status
Neo4j Server is not running
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ] bin/neo4j start
Starting Neo4j Server…process [27304]… waiting for server to be ready……… OK.
http://localhost:7474/ is ready.
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ] bin/neo4j status
Neo4j Server is running at pid 27304
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ] ps -ef | grep 27304
root 27304 1 23 04:29 pts/1 00:00:30 /mariadb/jdk1.8.0_05/bin/java -cp /neo4j/neo4j-enterprise-2.2.4/lib/concurrentlinkedhashmap-lru-1.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/lucene-core-3.6.2.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-backup-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-cluster-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-com-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-consistency-check-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-csv-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-cypher-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-cypher-compiler-1.9-2.0.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-cypher-compiler-2.0-2.0.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-cypher-compiler-2.1-2.1.8.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-cypher-compiler-2.2-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-graph-algo-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-graph-matching-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-ha-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-import-tool-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-io-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-jmx-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-kernel-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-lucene-index-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-management-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-primitive-collections-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-query-logging-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-shell-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-udc-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-unsafe-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/netty-3.6.3.Final.jar:/neo4j/neo4j-enterprise-2.2.4/lib/opencsv-2.3.jar:/neo4j/neo4j-enterprise-2.2.4/lib/org.apache.servicemix.bundles.jline-0.9.94_1.jar:/neo4j/neo4j-enterprise-2.2.4/lib/parboiled-core-1.1.7.jar:/neo4j/neo4j-enterprise-2.2.4/lib/parboiled-scala_2.10-1.1.7.jar:/neo4j/neo4j-enterprise-2.2.4/lib/scala-library-2.10.5.jar:/neo4j/neo4j-enterprise-2.2.4/lib/server-api-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/slf4j-api-1.7.7.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/bcprov-jdk16-140.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/commons-beanutils-1.8.3.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/commons-compiler-2.6.1.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/commons-configuration-1.10.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/commons-digester-2.1.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/commons-io-2.4.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/commons-lang-2.6.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/commons-logging-1.1.1.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jackson-core-asl-1.9.13.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jackson-jaxrs-1.9.13.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jackson-mapper-asl-1.9.13.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/janino-2.6.1.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/javax.servlet-api-3.1.0.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jcl-over-slf4j-1.7.7.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jersey-core-1.19.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jersey-multipart-1.19.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jersey-server-1.19.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jersey-servlet-1.19.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-http-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-io-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-security-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-server-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-servlet-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-util-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-webapp-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-xml-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jsr311-api-1.1.2.r612.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/logback-access-1.1.2.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/logback-classic-1.1.2.jar:/neo4j/neo4j-enterprise-2.2.
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ] netstat -nlp | grep 7474
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:7474 0.0.0.0:* LISTEN 27304/java
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4 ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4/bin ] ./neo4j info
Neo4j Server is running at pid 27304
NEO4J_HOME: /neo4j/neo4j-enterprise-2.2.4
NEO4J_SERVER_PORT: 7474
NEO4J_INSTANCE: /neo4j/neo4j-enterprise-2.2.4
JAVA_HOME: /java/jdk1.8.0_05
JAVA_OPTS: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:-OmitStackTraceInFastThrow -XX:hashCode=5 -Dneo4j.ext.udc.source=tarball
CLASSPATH: /neo4j/neo4j-enterprise-2.2.4/lib/concurrentlinkedhashmap-lru-1.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/lucene-core-3.6.2.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-backup-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-cluster-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-com-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-consistency-check-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-csv-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-cypher-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-cypher-compiler-1.9-2.0.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-cypher-compiler-2.0-2.0.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-cypher-compiler-2.1-2.1.8.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-cypher-compiler-2.2-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-graph-algo-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-graph-matching-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-ha-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-import-tool-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-io-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-jmx-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-kernel-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-lucene-index-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-management-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-primitive-collections-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-query-logging-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-shell-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-udc-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/neo4j-unsafe-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/netty-3.6.3.Final.jar:/neo4j/neo4j-enterprise-2.2.4/lib/opencsv-2.3.jar:/neo4j/neo4j-enterprise-2.2.4/lib/org.apache.servicemix.bundles.jline-0.9.94_1.jar:/neo4j/neo4j-enterprise-2.2.4/lib/parboiled-core-1.1.7.jar:/neo4j/neo4j-enterprise-2.2.4/lib/parboiled-scala_2.10-1.1.7.jar:/neo4j/neo4j-enterprise-2.2.4/lib/scala-library-2.10.5.jar:/neo4j/neo4j-enterprise-2.2.4/lib/server-api-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/lib/slf4j-api-1.7.7.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/bcprov-jdk16-140.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/commons-beanutils-1.8.3.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/commons-compiler-2.6.1.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/commons-configuration-1.10.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/commons-digester-2.1.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/commons-io-2.4.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/commons-lang-2.6.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/commons-logging-1.1.1.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jackson-core-asl-1.9.13.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jackson-jaxrs-1.9.13.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jackson-mapper-asl-1.9.13.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/janino-2.6.1.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/javax.servlet-api-3.1.0.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jcl-over-slf4j-1.7.7.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jersey-core-1.19.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jersey-multipart-1.19.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jersey-server-1.19.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jersey-servlet-1.19.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-http-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-io-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-security-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-server-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-servlet-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-util-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-webapp-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jetty-xml-9.2.4.v20141103.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/jsr311-api-1.1.2.r612.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/logback-access-1.1.2.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/logback-classic-1.1.2.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/logback-core-1.1.2.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/mimepull-1.9.3.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/neo4j-browser-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/neo4j-server-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/neo4j-server-2.2.4-static-web.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/neo4j-server-advanced-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/neo4j-server-enterprise-2.2.4.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/rhino-1.7R4.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/rrd4j-2.2.jar:/neo4j/neo4j-enterprise-2.2.4/system/lib/scala-reflect-2.10.5.jar:/neo4j/neo4j-enterprise-2.2.4/conf
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4/bin ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4/bin ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4/conf ] ll -ltrh
total 52K
-rw-r–r– 1 1000 comp 2.6K Aug 7 06:53 windows-wrapper-logging.properties
-rw-r–r– 1 1000 comp 1.4K Aug 7 06:53 README.txt
-rw-r–r– 1 1000 comp 3.6K Aug 7 06:53 neo4j-wrapper.conf
-rw-r–r– 1 1000 comp 3.5K Aug 7 06:53 neo4j-server.properties
-rw-r–r– 1 1000 comp 4.7K Aug 7 06:53 neo4j.properties
-rw-r–r– 1 1000 comp 1.5K Aug 7 06:53 neo4j-http-logging.xml
-rw-r–r– 1 1000 comp 2.6K Aug 7 06:53 logging.properties
-rw——- 1 1000 comp 94 Aug 7 06:53 jmx.password
-rw——- 1 1000 comp 145 Aug 7 06:53 jmx.access
-rw-r–r– 1 1000 comp 1.8K Aug 7 06:53 custom-logback.xml
-rw-r–r– 1 1000 comp 1.1K Aug 7 06:53 arbiter-wrapper.conf
drwxr-xr-x 2 root root 4.0K Oct 8 04:30 ssl
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4/conf ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4/conf ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4/conf ] grep “index” neo4j.properties | grep -v “#”
node_auto_indexing=true
node_keys_indexable=name,age
relationship_auto_indexing=true
relationship_keys_indexable=name,age,ROOT,KNOWS,CODED_BY
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4/conf ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4/conf ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4/conf ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4/conf ]
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4/bin ] mkdir /neo4j/neo4j-enterprise-2.2.4/neo4j_db
[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4/bin ]

[ root @ dbversitydotcom : /neo4j/neo4j-enterprise-2.2.4/bin ] ./neo4j-shell -path /neo4j/neo4j-enterprise-2.2.4/neo4j_db
NOTE: Local Neo4j graph database service at ‘/neo4j/neo4j-enterprise-2.2.4/neo4j_db’
Welcome to the Neo4j Shell! Enter ‘help’ for a list of commands
neo4j-sh (?)$ help
Available commands: alias begin cd commit create cypher dbinfo drop dump env explain export gsh help index jsh load ls man match merge mknode mkrel mv optional paths planner profile pullupdates pwd return rm rmnode rmrel rollback schema set start trav unwind using with
Use man <command> for info about each command.
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$ man alias

Adds an alias so that it can be used later as a command.
Usage: alias <key>=<value>.

neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$ ls
Not currently standing on any entity.
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$ man mkrel

Creates a relationship to a new or existing node, f.ex:
mkrel -ct KNOWS (will create a relationship to a new node)
mkrel -t KNOWS 123 (will create a relationship to node with id 123).

-c Supplied if there should be created a new node.
–cd Go to the created node, like doing ‘cd’.
-d The direction: OUTGOING, INCOMING, o, i.
-l Labels to attach to the created node (if one is created), either a single label
or a JSON array.
–np Properties (a json map) to set for the new node (if one is created).
–rp Properties (a json map) to set for the new relationship.
-t The relationship type.
-v Verbose mode: display created nodes/relationships.

neo4j-sh (?)$

neo4j-sh (?)$ man mknode

Creates a new node, f.ex:
mknode –cd –np “{‘name’:’Neo’}” -l PERSON.

–cd Go to the created node, like doing ‘cd’.
-l Labels to attach to the created node, either a single label or a JSON array.
–np Properties (a json map) to set for the new node (if one is created).
-v Verbose mode: display created node.

neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$ # Create a reference node
Unknown command ‘#’
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$ // Create a reference node
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$ mknode –cd
neo4j-sh (0)$
neo4j-sh (0)$ // create the Thomas Andersson node
neo4j-sh (0)$
neo4j-sh (0)$ mkrel -t ROOT -c -v
Node (1) created
Relationship [:ROOT,0] created
neo4j-sh (0)$
neo4j-sh (0)$
neo4j-sh (0)$ man mkrel

Creates a relationship to a new or existing node, f.ex:
mkrel -ct KNOWS (will create a relationship to a new node)
mkrel -t KNOWS 123 (will create a relationship to node with id 123).

-c Supplied if there should be created a new node.
–cd Go to the created node, like doing ‘cd’.
-d The direction: OUTGOING, INCOMING, o, i.
-l Labels to attach to the created node (if one is created), either a single label
or a JSON array.
–np Properties (a json map) to set for the new node (if one is created).
–rp Properties (a json map) to set for the new relationship.
-t The relationship type.
-v Verbose mode: display created nodes/relationships.

neo4j-sh (0)$
neo4j-sh (0)$
neo4j-sh (0)$
neo4j-sh (0)$ \\ go to the new node
Unknown command ‘\\’
neo4j-sh (0)$
neo4j-sh (0)$
neo4j-sh (0)$ // go to the new node
neo4j-sh (0)$
neo4j-sh (0)$ cd 1
neo4j-sh (1)$
neo4j-sh (1)$
neo4j-sh (1)$ // set the name property
neo4j-sh (1)$
neo4j-sh (1)$ set name “Thomas Andersson”
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$ // create Thomas direct friends
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$ mkrel -t KNOWS -cv
Node (2) created
Relationship [:KNOWS,1] created
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$ cd 2
neo4j-sh (2)$
neo4j-sh (2)$
neo4j-sh (2)$
neo4j-sh (2)$ set name “Trinity”
neo4j-sh (Trinity,2)$
neo4j-sh (Trinity,2)$
neo4j-sh (Trinity,2)$
neo4j-sh (Trinity,2)$ // go back in the history stack
neo4j-sh (Trinity,2)$
neo4j-sh (Trinity,2)$ cd ..
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$ // create Thomas direct friends
neo4j-sh (Thomas Andersson,1)$ mkrel -t KNOWS -cv
Node (3) created
Relationship [:KNOWS,2] created
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$
neo4j-sh (Thomas Andersson,1)$ cd 3
neo4j-sh (3)$
neo4j-sh (3)$
neo4j-sh (3)$
neo4j-sh (3)$
neo4j-sh (3)$
neo4j-sh (3)$
neo4j-sh (3)$
neo4j-sh (3)$
neo4j-sh (3)$ set name “Morpheus”
neo4j-sh (Morpheus,3)$
neo4j-sh (Morpheus,3)$
neo4j-sh (Morpheus,3)$ mkrel -t KNOWS 2
neo4j-sh (Morpheus,3)$
neo4j-sh (Morpheus,3)$
neo4j-sh (Morpheus,3)$ ls -rv
(me)-[:KNOWS,3]->(Trinity,2)
(me)<-[:KNOWS,2]-(Thomas Andersson,1)
neo4j-sh (Morpheus,3)$ // change the current position to relationship #2
neo4j-sh (Morpheus,3)$ cd -r 2
neo4j-sh [:KNOWS,2]$
neo4j-sh [:KNOWS,2]$
neo4j-sh [:KNOWS,2]$
neo4j-sh [:KNOWS,2]$
neo4j-sh [:KNOWS,2]$
neo4j-sh [:KNOWS,2]$
neo4j-sh [:KNOWS,2]$
neo4j-sh [:KNOWS,2]$ // set the age property on the relationship
neo4j-sh [:KNOWS,2]$
neo4j-sh [:KNOWS,2]$
neo4j-sh [:KNOWS,2]$ set -t int age 3
neo4j-sh [:KNOWS,2]$
neo4j-sh [:KNOWS,2]$
neo4j-sh [:KNOWS,2]$ // back to Morpheus
neo4j-sh [:KNOWS,2]$
neo4j-sh [:KNOWS,2]$ cd ..
neo4j-sh (Morpheus,3)$
neo4j-sh (Morpheus,3)$
neo4j-sh (Morpheus,3)$
neo4j-sh (Morpheus,3)$ // next relationship
neo4j-sh (Morpheus,3)$
neo4j-sh (Morpheus,3)$ cd -r 3
neo4j-sh [:KNOWS,3]$
neo4j-sh [:KNOWS,3]$
neo4j-sh [:KNOWS,3]$
neo4j-sh [:KNOWS,3]$ // set the age property on the relationship
neo4j-sh [:KNOWS,3]$ set -t int age 90
neo4j-sh [:KNOWS,3]$
neo4j-sh [:KNOWS,3]$
neo4j-sh [:KNOWS,3]$
neo4j-sh [:KNOWS,3]$ man set

Sets a property on the current node or relationship or label on the current
node.
Usage:
set <key> <value>
set -p <key> <value>
set -l PERSON.

-l Sets one or more labels on the current node.
-p Tells the command to set the supplied values as property.
-t Value type, f.ex: String, String[], int, long[], byte a.s.o. If an array type is
supplied the value(s) are given in a JSON-style array format, f.ex:
[321,45324] for an int[] or
“[‘The first string’,’The second string here’]” for a String[].

neo4j-sh [:KNOWS,3]$
neo4j-sh [:KNOWS,3]$

Commands to run
====================================================================================================================
// Create a reference node
mknode –cd

// create the Thomas Andersson node
mkrel -t ROOT -c -v

// go to the new node
cd 1

// set the name property
set name “Thomas Andersson”

// create Thomas direct friends
mkrel -t KNOWS -cv

// go to the new node
cd 2

// set the name property
set name “Trinity”

// go back in the history stack
cd ..

// create Thomas direct friends
mkrel -t KNOWS -cv

// go to the new node
cd 3

// set the name property
set name “Morpheus”

// create relationship to Trinity
mkrel -t KNOWS 2

// list the relationships of node 3
ls -rv

// change the current position to relationship// 2
cd -r 2

// set the age property on the relationship
set -t int age 3

// back to Morpheus
cd ..

// next relationship
cd -r 3

// set the age property on the relationship
set -t int age 90

// position to the start node of the current relationship
cd start

// new node
mkrel -t KNOWS -c

// list relationships on the current node
ls -r

// go to Cypher
cd 4

// set the name
set name Cypher

// create new node from Cypher
mkrel -ct KNOWS

// list relationships
ls -r

// go to the Agent Smith node
cd 5

// set the name
set name “Agent Smith”

// outgoing relationship and new node
mkrel -cvt CODED_BY

// go there
cd 6

// set the name
set name “The Architect”

// go to the first node in the history stack
cd
====================================================================================================================
neo4j-sh (?)$ start morpheus = node:node_auto_index(name=’Morpheus’) match morpheus-[:KNOWS]-zionist return zionist.name;
QueryExecutionKernelException: Index `node_auto_index` does not exist
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$
neo4j-sh (?)$ index –create node_auto_index -t Node
neo4j-sh (?)$
neo4j-sh (?)$ start morpheus = node:node_auto_index(name=’Morpheus’) match morpheus-[:KNOWS]-zionist return zionist.name;

  • Ask Question