13th week Map-oriented database NEO4J deployment and use __ database

Source: Internet
Author: User
Tags neo4j log4j
neo4j Introduction Graph database Requirements  can be clearly intuitive way to store the graph data, rather than distort the change for other alternative way  can simply map operations, such as search, traversal, etc.
The basic idea of the graph database (graph) is composed of nodes (node, vertex) and relation (relationship, edge) to record data on nodes (properties of nodes, property)  nodes are organized into graphs by the relationship, and the relationship also has attributes  Seek road (traversal, Another meaning is traversal. Locate a node-indexed path index (index) to map attributes to nodes or relationships Graph database management System Management diagram and its index neo4j is the current mainstream diagram database products
Neo4j from the open source map database developed by Neo Technology, the company has been developing graph database since 2000, now NEO4J has become a leading figure database product, Cisco, HP, Deutsche Telecom and other multinational enterprises have become customer  Features: Intuitive graph model Storage Full support for ACID transactions disk-based persistent storage supports massive data, such as billions of node/relationship/attribute level data high availability distributed cluster height optimization, rapid graph query (Cypher Graph Query Language) can be embedded (just a few small jar files), support rest API
installation of neo4jOfficial website: http://www.neo4j.org/Neo4j deployment mode  Standalone mode: A stand-alone server, which can be accessed through the rest API, or language-driven access  Embedded mode: Provide a number of libraries, embedded in the Java program to run
# #安装linux版本 http://dist.neo4j.org/neo4j-community-1.9.4-unix.tar.gz Download after the unpack (here is the Community version)  Switch root, run./bin/neo4j Install # #安装neo4j需要首先安装JDK # tar zxf neo4j-community-1.9.4-unix.tar.gz # mv neo4j-community-1.9.4 neo4j # CD Neo4j/bin [ro Ot@linux bin]#./neo4j install graph-like Power should handled is carefully. What user should run neo4j? [Oracle] Root
# #修改配置文件./conf/neo4j-server.properties org.neo4j.server.webserver.address=0.0.0.0
# #启动 [Root@linux bin]#./NEO4J status neo4j Server is not running [root@linux bin]#./neo4j start Warning:max 1024 open F Iles allowed, minimum of recommended. The NEO4J manual. Using additional JVM arguments:-server-xx:+disableexplicitgc-dorg.neo4j.server.properties=conf/ neo4j-server.properties-djava.util.logging.config.file=conf/logging.properties-dlog4j.configuration=file:conf/ log4j.properties-xx:+useconcmarksweepgc-xx:+cmsclassunloadingenabled starting Neo4j Server...process [1128] ... Waiting for server to is ready ..... Ok. Go to Http://localhost:7474/webadmin/for administration interface. [Root@linux bin]#./NEO4J status neo4j Server is running at PID 1128
# #远程web UI http://10.10.10.8:7474/webadmin/# # #Web ui:console http://10.10.10.8:7474/webadmin/#/console/# #用简单的语句测试 neo4j-sh  (0) $ create  (ee { name:  "Emil", from:  "Sweden"  })   return ee.name;==> +---------+==> | ee.name |==> +---------+==>  |  "Emil"   |==> +---------+==> 1 row==> nodes created:  1==> Properties set: 2==> ==> 1100 msneo4j-sh  (0) $  Start ee=node (*)  WHERE ee.name! =  "Emil"  return ee;==> +----------- -------------------------+==> | ee                                   |==> +------------------------------------+==> | node[1]{ Name: "Emil", From: "SweDen "} |==> +------------------------------------+==> 1 row==> ==>  502 msneo4j-sh (0) $
# #Shell命令参考 http://docs.neo4j.org/chunked/1.9.4/shell-commands.html
neo4j ClusterSimulation test neo4j high available  Download neo4j Enterprise version  Extract for multiple different directory  Modify the configuration file, so that listen to different ports  Start multiple neo4j server process neo4j Manual section 26.6  Similar to MySQL high availability cluster, can achieve read-write separation, Write data is directed to the master node and read from multiple slave
# #下载企业版并解压缩到三个目录 http://dist.neo4j.org/neo4j-enterprise-1.9.4-unix.tar.gz # tar ZXF Neo4j-enterprise-1.9.4-unix.tar # mv neo4j-enterprise-1.9.4 neo4j01 [root@linux neo4j]# cp-r neo4j01 neo4j02 [root@linux neo4j]# cp-r neo4j01 neo4j03
# #1号节点的配置文件 neo4j.properties online_backup_server=127.0.0.1:6362 ha.server_id=1 ha.initial_hosts= 127.0.0.1:5001,127.0.0.1:5002,127.0.0.1:5003 ha.server=127.0.0.1:6001 ha.cluster_server=127.0.0.1:5001
# #1号节点的配置文件 Neo4j-server.properties org.neo4j.server.webserver.address=0.0.0.0 Org.neo4j.server.manage.console_ Engines=gremlin, Shell Org.neo4j.server.database.mode=ha org.neo4j.server.webserver.port=7474 org.neo4j.server.webserver.https.port=7473
# #2号节点的配置文件 neo4j.properties online_backup_server=127.0.0.1:6363 ha.server_id=2 ha.initial_hosts= 127.0.0.1:5001,127.0.0.1:5002,127.0.0.1:5003 ha.server=127.0.0.1:6002 ha.cluster_server=127.0.0.1:5002
# #2号节点的配置文件 Neo4j-server.properties org.neo4j.server.webserver.address=0.0.0.0 Org.neo4j.server.manage.console_ Engines=gremlin, Shell Org.neo4j.server.database.mode=ha org.neo4j.server.webserver.port=7484 org.neo4j.server.webserver.https.port=7483
# #3号节点的配置文件 neo4j.properties online_backup_server=127.0.0.1:6364 ha.server_id=3 ha.initial_hosts= 127.0.0.1:5001,127.0.0.1:5002,127.0.0.1:5003 ha.server=127.0.0.1:6003 ha.cluster_server=127.0.0.1:5003
# #3号节点的配置文件 Neo4j-server.properties org.neo4j.server.webserver.address=0.0.0.0 Org.neo4j.server.manage.console_ Engines=gremlin, Shell Org.neo4j.server.database.mode=ha org.neo4j.server.webserver.port=7494 org.neo4j.server.webserver.https.port=7493
# #启动三个neo4j实例 [Root@linux bin]#./neo4j start Warning:max 1024 open files allowed, minimum to recommended. The NEO4J manual. Using additional JVM arguments:-server-xx:+disableexplicitgc-dorg.neo4j.server.properties=conf/ neo4j-server.properties-djava.util.logging.config.file=conf/logging.properties-dlog4j.configuration=file:conf/ log4j.properties-xx:+useconcmarksweepgc-xx:+cmsclassunloadingenabled starting Neo4j Server ... HA instance started in process [2244]. Would be operational once connected to peers. See/nosql/neo4j/neo4j01/data/log/console.log for current status. [Root@linux bin]# [Root@linux bin]# cd/nosql/neo4j/neo4j02/bin/[root@linux bin]#./neo4j start Warning:max 1024 open fi Les allowed, minimum of recommended. The NEO4J manual. Using additional JVM arguments:-server-xx:+disableexplicitgc-dorg.neo4j.server.properties=conf/ neo4j-server.properties-djava.util.logging.config.file=conf/logging.properties-dlog4j.configuration=file:conf/ Log4j.properties-xx:+useconcmarksweepgc-xx:+cmsclassunloadingenabled starting neo4j Server ... HA instance started in process [2417]. Would be operational once connected to peers. See/nosql/neo4j/neo4j02/data/log/console.log for current status. [Root@linux bin]# [Root@linux bin]# cd/nosql/neo4j/neo4j03/bin/[root@linux bin]#./neo4j start Warning:max 1024 open fi Les allowed, minimum of recommended. The NEO4J manual. Using additional JVM arguments:-server-xx:+disableexplicitgc-dorg.neo4j.server.properties=conf/ neo4j-server.properties-djava.util.logging.config.file=conf/logging.properties-dlog4j.configuration=file:conf/ log4j.properties-xx:+useconcmarksweepgc-xx:+cmsclassunloadingenabled starting Neo4j Server ... HA instance started in process [2690]. Would be operational once connected to peers. See/nosql/neo4j/neo4j03/data/log/console.log for current status. [Root@linux bin]# [Root@linux bin]# JPS 2417 Bootstrapper 2796 JPS 2244 Bootstrapper 2690 Bootstrapper [Root@linux bin]#&nbsp
# Watch high-availability cluster status on #Web UI http://10.10.10.8:7474/webadmin/#/info/org.neo4j/High%20Availability/


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.