Skip to content

Building Neo4j

aborkar-ibm edited this page Apr 27, 2022 · 51 revisions

Building Neo4j

Note: This package uses Log4j. Please see details here, for the updates on security vulnerabilities.

General Notes:

  • When following the steps below, please use a standard permission user unless otherwise specified.

  • A directory /<source_root>/ will be referred to in these instructions, this is a temporary writable directory anywhere you'd like to place it.

Neo4j binaries are available and can be downloaded from here. To use these binaries, different Java flavors can be installed on mentioned distributions.

Note: Neo4j(v4.4.5) was verified at the time of creation of these instructions

Step 1: Install Java

  • RHEL (7.8, 7.9, 8.2, 8.4, 8.5)

    • With Eclipse Adoptium Temurin Runtime (previously known as AdoptOpenJDK hotspot)

      • Download and install Eclipse Adoptium Temurin Runtime (Java 11) from here.
    • With OpenJDK11

         sudo yum install -y java-11-openjdk-devel
    
  • Ubuntu (18.04, 20.04, 21.10)

    • With Eclipse Adoptium Temurin Runtime (previously known as AdoptOpenJDK hotspot)

      • Download and install Eclipse Adoptium Temurin Runtime (Java 11) from here.
    • With OpenJDK11

         sudo apt-get update
         sudo apt-get install -y openjdk-11-jdk
    
  • SLES (12 SP5, 15 SP3)

    • With Eclipse Adoptium Temurin Runtime (previously known as AdoptOpenJDK hotspot)

      • Download and install Eclipse Adoptium Temurin Runtime (Java 11) from here.
    • With OpenJDK11

         sudo zypper install -y java-11-openjdk-devel
    

Step 2: Set Environment variables

  export SOURCE_ROOT=/<source_root>/
  export JAVA_HOME=<path to installed java>
  export PATH=$JAVA_HOME/bin:$PATH

Step 3: Start server

To start the server, extract binary tar to $SOURCE_ROOT and follow steps given below.

  cd $SOURCE_ROOT/<Neo4j_binary_folder>/
  bin/neo4j start
  bin/neo4j status 
  bin/neo4j stop

References:

Clone this wiki locally