Tutorial on installing neo4j in linux, linuxneo4j
Neo4j is divided into Community Edition and Enterprise Edition. Community Edition is the free version.
System requirements)
The installation of Neo4j has some requirements on hardware and system, such as CPU, Memory, Disk, Filesystem, Software, etc,
CPU
The minimum requirement for CPU usage is that Intel Core i7 or ibm power 8 Memory is recommended for Itel Core i3.
For Memory, the minimum requirement is 2 GB. The recommended value is 16-32 GB or more. The larger the memory, the larger the graph can be processed, but must be correctly configured to avoid junk collection. Disk
In addition to the Disk capacity, the Disk performance has a great impact on Neoj4, and the workload of Neo4j tends to be read randomly. Select a storage with low average addressing time, such as SSD. The minimum requirement is 10 gb sata. We recommend that you configure SSD w/SATA FileSystem.
Minimum requirements: ext4 (or similar)
We recommend that you configure ext4 and ZFS Software.
Java
OpenJDK 8 or Oracle Java 8 Operation Sytem must be installed
Linux (Ubuntu, Debian), but my test environment is Red Hat Enterprise Linux Server release 6.6. No problems have been found yet. Ubuntures
X86 or OpenPower (POWER8)
Install
1. jdk
[root@biluos1 software]# java -versionjava version "1.8.0_121"Java(TM) SE Runtime Environment (build 1.8.0_121-b13)Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)You have new mail in /var/spool/mail/root[root@biluos1 software]#
3: create a user named neo4j to manage Neo4j. Of course this is not necessary. It can also be another account or root account.
[root@biluos1 neo4j-community-3.2.10]# groupadd nosql [root@biluos1 neo4j-community-3.2.10]# useradd -G nosql neo4j
Extract
[neo4j@biluos1 ~]$ tar -zxvf /opt/software/neo4j-community-3.2.10-unix.tar.gz -C /opt/moudles/neo4j/[root@biluos1 neo4j-community-3.2.10]# chown neo4j:nosql -R /opt/moudles/neo4j/[root@biluos1 neo4j-community-3.2.10]# su - neo4j
Modify Environment Variables
[root@biluos1 neo4j-community-3.2.10]# vim /etc/profileexport NEO4J_HOME=/opt/moudles/neo4j/neo4j-community-3.2.10 export PATH=$PATH:$NEO4J_HOME/bin
Modify the configuration file/etc/security/limits. conf
neo4j soft nofile 40000neo4j hard nofile 40000
Edit/etc/pam. d/su and add options in the configuration file.
session optional pam_xauth.so
Verify
[root@biluos1 neo4j-community-3.2.10]# su neo4j[neo4j@biluos1 ~]$ neo4j version neo4j 3.2.10[neo4j@biluos1 ~]$ neo4jUsage: neo4j { console | start | stop | restart | status | version }
Configuration
Create Database directory [neo4j @ biluos1 neo4j] $ mkdir/opt/moudles/neo4j/data [neo4j @ biluos1 neo4j] $ vim neo4j-community-3.2.10/conf/neo4j. conf specifies the database directory location dbms. active_database =/opt/moudles/neo4j/data/graph. dbdbms. directories. import = importdbms. memory. heap. initial_size = 512mdbms. memory. heap. max_size = m specifies the running host dbms. connectors. default_listen_address = 192.168.10.174 dbms. connectors. default_advertised_address = 192.168.10.174 dbms. connector. bolt. enabled = true dbms. connector. bolt. tls_level = OPTIONAL dbms. connector. bolt. listen_address =: 7687 dbms. connector. http. enabled = true dbms. connector. http. listen_address =: 7474 dbms. connector. https. enabled = true dbms. connector. https. listen_address =: 7473 dbms. tx_log.rotation.retention_policy = 1 days dbms. jvm. additional =-XX: + UseG1GC dbms. jvm. additional =-XX:-OmitStackTraceInFastThrow dbms. jvm. additional =-XX: + AlwaysPreTouch dbms. jvm. additional =-XX: + UnlockExperimentalVMOptions dbms. jvm. additional =-XX: + TrustFinalNonStaticFields dbms. jvm. additional =-XX: + DisableExplicitGC dbms. jvm. additional =-Djdk. tls. ephemeralDHKeySize = 2048 dbms. jvm. additional =-Djdk. tls. rejectClientInitiatedRenegotiation = true dbms. windows_service_name = neo4j dbms. jvm. additional =-Dunsupported. dbms. udc. source = tarball
Start
[neo4j@biluos1 neo4j]$ neo4j startActive database: /opt/moudles/neo4j/data/graph.dbDirectories in use: home: /opt/moudles/neo4j/neo4j-community-3.2.10 config: /opt/moudles/neo4j/neo4j-community-3.2.10/conf logs: /opt/moudles/neo4j/neo4j-community-3.2.10/logs plugins: /opt/moudles/neo4j/neo4j-community-3.2.10/plugins import: /opt/moudles/neo4j/neo4j-community-3.2.10/import data: /opt/moudles/neo4j/neo4j-community-3.2.10/data certificates: /opt/moudles/neo4j/neo4j-community-3.2.10/certificates run: /opt/moudles/neo4j/neo4j-community-3.2.10/runStarting Neo4j.Started neo4j (pid 6793). It is available at https://192.168.10.174:7474/There may be a short delay until the server is ready.See /opt/moudles/neo4j/neo4j-community-3.2.10/logs/neo4j.log for current status.
Access: https: // 192.168.10.174: 7474/
Default password: neo4j
You need to change the password for the First Login