Skip to content

Instantly share code, notes, and snippets.

@DevoKun
Created June 28, 2019 00:52
Show Gist options
  • Select an option

  • Save DevoKun/12a7f1cbd58e84b4309044f2df3621ba to your computer and use it in GitHub Desktop.

Select an option

Save DevoKun/12a7f1cbd58e84b4309044f2df3621ba to your computer and use it in GitHub Desktop.

Revisions

  1. DevoKun created this gist Jun 28, 2019.
    53 changes: 53 additions & 0 deletions neo4j.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,53 @@
    Neo4j
    =====


    ## Install Java

    **Neo4j** requires at least **OpenJDK 8**.

    ```bash
    apt update ; apt install -y default-jre default-jre-headless
    ```


    ## Installing Neo4j _(community edition)_

    ```bash
    apt-get install -y gnupg
    apt-key adv --fetch-keys https://debian.neo4j.org/neotechnology.gpg.key

    echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list

    apt update ; apt install neo4j

    systemctl status neo4j.service

    ```


    ## Neo4j Ports

    * **HTTP**: 7474
    * **HTTPS**: 7473
    * **Bolt**: 7687


    ## Accessing Neo4j

    ## Set Initial Password

    ```bash
    neo4j-admin set-initial-password 'PASSWORD'
    ```

    ### Website

    Access Neo4j via: `http://localhost:7474/browser/`

    ### neo4j cli

    ```bash
    neo4j console
    ```