Ubuntu Neo4j standalone installation and Cluster Environment Installation

Source: Internet
Author: User
Tags neo4j

1. Introduction to Neo4j

Neo4j is a high-performance, NoSQL graph database implemented in Java. Neo4j uses graph-related concepts to describe the data model, and uses the relationship between nodes in the graph to model. Neo4j is fully compatible with ACID transactions. Neo4j uses "Node space" to express domain data. Compared with traditional relational database tables, rows, and columns, Node space can better store networks composed of node relationships and attributes, such as social networks and moments.

2. Introduction to neo4j

There are many types of neo4j versions, including open-source community versions and enterprise versions. The Community version includes many basic features of neo4j, but it seems that only a single machine does not support clustering, and the enterprise version only supports clustering and other features. The enterprise Edition is divided into three types: personal, startups, and bussiness and enterprise. Only the personal version seems free. For more information, see.

3. Single-host Installation

Single-host installation is very simple:

1) After downloading the community version of neo4j, decompress and run the command tar-zvxf neo4j-community-2.0.1.tar.gz.

2) modify the conf/neo4j-server.properties configuration file and remove the org. neo4j. server. webserver. address = 0.0.0.0 annotation character

3) enter the bin directory and start the neo4j service.

4) Enter http: // ip: 7474/webadmin to enter the neo4j console.

4. Build a Cluster Environment

The building process of the neo4j cluster environment is relatively complex and cannot be selected for the community version. Therefore, this article uses the enterprise version to build the Neo4j HA

Build Environment:

Master1 master2 master3 operating system and its version is unbuntu 12.04.2

Construction Process:

Master1 master2 master3 this process is basically the same.

1) disable the Firewall:

Ufw disable

2) Modify/etc/hosts. The configuration is as follows:

192.168.75.34 master1

192.168.75.35 master2

192.168.75.36 master3

3) install jdk 7 (this is required because he only recognizes jdk 7)

Download jdk: wget-chttp: // download.Oracle.com/otn-pub/java/jdk/7/jdk-7u51-linux-x64.tar.gz

Decompress Software

Tar zxvf./jdk-7-linux-i586.tar.gz-directory =/usr/lib/jvm

Cd/usr/lib/jvm

Modify Environment Variables

Vim ~ /. Bashrc
Export JAVA_HOME =/usr/lib/jvm/jdk1.7.0 _ 51
Export JRE_HOME =$ {JAVA_HOME}/jre
Export CLASSPATH =. :$ {JAVA_HOME}/lib :$ {JRE_HOME}/lib
Export PATH =$ {JAVA_HOME}/bin: $ PATH
Source & nbsp ;~ /. Bashrc

Neo4j details: click here
Neo4j: click here

Recommended reading:

Neo4j generates test data

How Neo4j runs

Neo4j High Availability Configuration

Neo4J graph database practice series

Graph database practice series (1)-introduction and installation of Neo4J

Graph database practice series (II) -- Neo4J Spatial Data Storage

Graph database practice series (iii) -- REST integration of Neo4j Spatial

  • 1
  • 2
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.