RHEL: 2. Install Neo4j

Graphlytic uses Neo4j database as base data storage. You can use existing Neo4j database or install a new one. If you use exiting database be careful that Graphlytic stores some custom data into Neo4j database. Existing data stays unchanged because Graphlytic don't execute any change to existing data if it is not required by user. For better safety and data separation we recommend to use separate Neo4j database to work with Graphlytic. For information about required version see Requirements.

1. Install Neo4j

How to install Neo4j see Neo4j installation manual. It is strictly recommended to follow instructions at Neo4j manual. Here is short description how to install Neo4j but use this description with care.

1.1. Install Neo4j as a service

If you don't have license for Neo4j Enterprise you can use Neo4j Community edition. Download correct version for your operating system.

Follow instruction at http://yum.neo4j.org/ or download rpm file manually and execute this:

$ sudo su -
root:$ cd /tmp/
root:$ rpm -Uvh --nodeps neo4j-2.3.1-1.noarch.rpm
root:$ systemctl enable neo4j.service

Check installation:

root:$ find /etc/rc?.d/ -name "*neo4j*"
 
expected result:
/etc/rc2.d/S99neo4j
/etc/rc3.d/S99neo4j
/etc/rc4.d/S99neo4j
/etc/rc5.d/S99neo4j

2. Configure Neo4j database

For complete list of configuration see Neo4j Configuration manual. We recommend at least check configuration path to directory where Neo4j database is stored.

If you want to change this setting please edit main configuration file for the server that can be found at conf/neo4j-server.properties.

Example to set that location on disk of the database directory:

$ sudo su neo4j
neo4j:$ vi /usr/share/neo4j/conf/neo4j-server.properties
 
in file change line to this:
org.neo4j.server.database.location=/var/lib/neo4j