Skip to content

Building Neo4j

aborkar-ibm edited this page Apr 13, 2023 · 54 revisions

Building Neo4j

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(v5.6.0) was verified at the time of creation of these instructions

Step 1: Install Java

  • RHEL (7.8, 7.9, 8.4, 8.6, 8.7, 9.0, 9.1)

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

      • Download and install Eclipse Adoptium Temurin Runtime (Java 17) from here.
    • With OpenJDK17(8.4, 8.6, 8.7, 9.0, 9.1)

         sudo yum install -y java-17-openjdk-devel
    
  • Ubuntu (18.04, 20.04, 22.04, 22.10)

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

      • Download and install Eclipse Adoptium Temurin Runtime (Java 17) from here.
    • With OpenJDK17

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

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

      • Download and install Eclipse Adoptium Temurin Runtime (Java 17) from here.
    • With OpenJDK17(15 SP4 only)

         sudo zypper install -y java-17-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