Skip to content

Installing Neo4j on an Azure VM

pmartin7 edited this page Dec 19, 2016 · 6 revisions

Create an Azure VM (Windows Server A1)

  • Directly on the Azure management console
  • access info available in OneDrive

Install Neo4j as a service

  • first download JRE 8 from Oracle on the Azure VM directly. From IE, download from here: http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jre-8u112-windows-x64.exe
  • Note that Neo4j v3 will only work with JRE 8
  • download the Neo4j 3.1 zip file to the VM from Neo4j: https://neo4j.com/download/other-releases/
  • Extract
  • Open powershell as an admin. Go to the folder you just unzipped, under bin, then run .\neo4j.bat install-service
  • Open server manager, go to services, refresh, and verify that the Neo4j service is present. By default, it is installed and configured to start automatically when the server starts
  • Open neo4j.conf in C:\neo4j-community-3.1.0\conf
  • Uncomment the following line: dbms.connectors.default_listen_address=0.0.0.0
  • Uncomment the following liones:

    dbms.connector.bolt.tls_level=OPTIONAL dbms.connector.bolt.listen_address=:7687

  • From powershell, start the service. Go to the neo4j bin location, and run .\neo4j.bat start
  • In IE, go to http://localhost:7474/browser. Make sure everything works as expected
  • Download a snapshot of the graphDb from OneDrive
  • Copy the content to the <neo4j_home>\data\databases\graph.db folder
  • From powershell, restart the service. Go to the neo4j bin location, and run .\neo4j.bat restart
  • In IE, go to http://localhost:7474/browser again... magic!

Configure server firewall

  • from the Azure VM, go to server manager>tools>Windows Firewall with Advanced Security
  • create a new inbound rule for port 7474
  • create a new inbound rule for port 7687 (this is for the bolt query protocol to work)

Configure an endpoint

  • go to portal.azure.com. Navigate to the VM management tab, and select the specific VM where we installed Neo4j
  • go on endpoints tab
  • add endpoints for ports 7474 and 7687

Install Neo4j as an App (just fyi - this is really not needed)

  • Connect to the Azure VM from portal.azure.com
  • Open IE, and turn off enhanced security for VM admins (first time creation only)
  • From the Azure VM, download neo4j on the VM from http://neo4j.com
  • Run the Neo4j Windows installer
  • Copy the snapshot of the graph db from OneDrive to the Azure VM
  • from the Azure VM, open Neo4j, and start the service using the folder of the snapshot you downloaded (e.g. C:\Users\mgdb\Documents\Neo4j\default.graphdb )
  • Go on http://localhost:7474 , connect using your test user name and password, and verify that all works as expected

Clone this wiki locally