In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "what is Neo4j". In daily operation, I believe many people have doubts about what Neo4j is. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts about "what is Neo4j?" Next, please follow the editor to study!
Neo4j is open source and is available in several versions, of which the Enterprise Edition is based on the AGPL protocol.
That means you need to expand and add an agreement.
The version of Neo4j is also divided into different platforms. At present, the newer version is 3.3, and the latest version is 3.4.
The sweet thing about Neo4j is that it will prompt you to sign up for a user when you download it, and after registering, it will send you an electronic version of pdf document. There are some detailed technical details.
Downloading Neo4j will actually be a lot of options, there are many components to download. Among them, Cypher is the top priority of learning Neo4j. Limited to the time limit, I only learned a few tricks.
Because Neo4j is based on Java, it is convenient to use Java for data processing, and of course it also supports languages and technologies for different platforms.
Let's simply put it into practice.
First of all, download Neo4j from the official website, the installation package is about 80m.
Because Neo4j is based on Java development, I chose version 3. 3, and the lowest acceptable version is 1. 8. So we need to prepare Java in advance when installing the configuration.
There are two ways to start Neo4j in the bin directory, one is to use the console option, and the other is that start is based on background mode.
The startup log is as follows:
[root@dev01 bin] #. / neo4j console
Active database: graph.db
Directories in use:
Home: / root/neo4j/neo4j-community-3.3.2
Config: / root/neo4j/neo4j-community-3.3.2/conf
Logs: / root/neo4j/neo4j-community-3.3.2/logs
Plugins: / root/neo4j/neo4j-community-3.3.2/plugins
Import: / root/neo4j/neo4j-community-3.3.2/import
Data: / root/neo4j/neo4j-community-3.3.2/data
Certificates: / root/neo4j/neo4j-community-3.3.2/certificates
Run: / root/neo4j/neo4j-community-3.3.2/run
Starting Neo4j.
WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.
2018-01-23 1515 INFO 1255.97215000 INFO = Neo4j 3.3.2 =
2018-01-23 15 1214 56.010 0000 INFO Starting...
2018-01-23 1515 INFO Bolt enabled on 127.4250000 INFO Bolt enabled on 127.0.0.1
2018-01-23 15 INFO Started 1314 01.078 0000.
2018-01-23 15 1314 02.240000 INFO Remote interface available at http://localhost:7474/
We can use the url provided to connect. The default password is neo4j. You will be prompted to change your password after logging in for the first time.
Then we can learn neo4j or graphics based on the command line of cypher-shell.
If you want to connect to Neo4j, use cypher-shell in the following ways:
[root@dev01 bin] #. / cypher-shell
Username: neo4j
Password: *
Connected to Neo4j 3.3.2 at bolt://localhost:7687 as user neo4j.
Type: help for a list of available commands or: exit to exit the shell.
Note that Cypher queries must end with a semicolon.
We create data.
Neo4j > CREATE (A {id:1,name:'A'}), (B {id:2,name:'B'}), (C {id:3,name:'C'}), (D {id:4,name:'D'}), (E {id:5,name:'E'}), (A)-[: Son]-> (B), (A)-[: Son]-> (C), (B)-[: Son]-> (D) (C)-[: Son]-> (E)
0 rows available after 226 ms, consumed after another 0 ms
Added 5 nodes, Created 4 relationships, Set 10 properties
Traverse, get the relationship.
Neo4j > START n=node (*) RETURN n
+-+
| | n |
+-+
| | ({name: "A", id: 1}) |
| | ({name: "B", id: 2}) |
| | ({name: "C", id: 3}) |
| | ({name: "D", id: 4}) |
| | ({name: "E", id: 5}) |
+-+
5 rows available after 1385 ms, consumed after another 18 ms
Neo4j >
If it is through the terminal, it is more convenient.
Enter the information directly into it, and you can get the result of the graph.
At this point, the study of "what is Neo4j" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.