CentOS下Neo4j安装教程
本文记录一下在CentOS 6.7上,安装neo4j图数据库,本文安装的版本为neo4j-community-2.3.9-unix.tar.gz。
下载Neo4j安装包
使用wget命令获取Neo4j安装包~如:
[root@dev18 srv]# wget https://neo4j.com/artifact.php?name=neo4j-community-2.3.9-unix.tar.gz
--2017-03-24 18:42:00-- https://neo4j.com/artifact.php?name=neo4j-community-2.3.9-unix.tar.gz
Resolving neo4j.com... 50.19.98.36, 54.204.9.74
Connecting to neo4j.com|50.19.98.36|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 58730611 (56M) [application/x-gzip]
Saving to: “artifact.php?name=neo4j-community-2.3.9-unix.tar.gz”
100%[====================================================================================================================================================================================================================================>] 58,730,611 6.87K/s in 48m 10s
2017-03-24 19:30:11 (19.8 KB/s) - “artifact.php?name=neo4j-community-2.3.9-unix.tar.gz” saved [58730611/58730611]
解压Neo4j安装包
使用tar -zvxf 命令解压neo4j安装包~ 如:
root@dev18 srv]# tar -zvxf artifact.php\?name\=neo4j-community-2.3.9-unix.tar.gz
neo4j-community-2.3.9/
neo4j-community-2.3.9/bin/
neo4j-community-2.3.9/data/
neo4j-community-2.3.9/data/import/
neo4j-community-2.3.9/data/log/
neo4j-community-2.3.9/conf/
neo4j-community-2.3.9/system/
neo4j-community-2.3.9/system/lib/
neo4j-community-2.3.9/lib/
neo4j-community-2.3.9/plugins/
neo4j-community-2.3.9/bin/README.txt
neo4j-community-2.3.9/data/import/README.txt
neo4j-community-2.3.9/data/log/README.txt
neo4j-community-2.3.9/data/README.txt
neo4j-community-2.3.9/CHANGES.txt
neo4j-community-2.3.9/LICENSES.txt
neo4j-community-2.3.9/conf/neo4j-wrapper.conf
neo4j-community-2.3.9/conf/neo4j-server.properties
neo4j-community-2.3.9/conf/neo4j-http-logging.xml
neo4j-community-2.3.9/conf/README.txt
neo4j-community-2.3.9/conf/neo4j.properties
neo4j-community-2.3.9/system/lib/README.txt
neo4j-community-2.3.9/system/README.txt
neo4j-community-2.3.9/lib/README.txt
neo4j-community-2.3.9/NOTICE.txt
neo4j-community-2.3.9/README.txt
neo4j-community-2.3.9/LICENSE.txt
neo4j-community-2.3.9/plugins/README.txt
neo4j-community-2.3.9/bin/Neo4j-Management/
neo4j-community-2.3.9/bin/neo4j-import
neo4j-community-2.3.9/bin/neo4j-shell
neo4j-community-2.3.9/bin/neo4j-installer
neo4j-community-2.3.9/bin/utils
neo4j-community-2.3.9/bin/neo4j
neo4j-community-2.3.9/system/resources/
neo4j-community-2.3.9/system/resources/org.neo4j.server.plist
neo4j-community-2.3.9/UPGRADE.txt
neo4j-community-2.3.9/lib/neo4j-kernel-2.3.9.jar
neo4j-community-2.3.9/lib/neo4j-primitive-collections-2.3.9.jar
neo4j-community-2.3.9/lib/neo4j-unsafe-2.3.9.jar
neo4j-community-2.3.9/lib/neo4j-function-2.3.9.jar
neo4j-community-2.3.9/lib/neo4j-io-2.3.9.jar
neo4j-community-2.3.9/lib/commons-lang3-3.3.2.jar
neo4j-community-2.3.9/lib/neo4j-csv-2.3.9.jar
neo4j-community-2.3.9/lib/neo4j-logging-2.3.9.jar
neo4j-community-2.3.9/lib/neo4j-lucene-index-2.3.9.jar
neo4j-community-2.3.9/lib/lucene-core-3.6.2.jar
neo4j-community-2.3.9/lib/neo4j-graph-algo-2.3.9.jar
neo4j-community-2.3.9/lib/neo4j-udc-2.3.9.jar
neo4j-community-2.3.9/lib/neo4j-graph-matching-2.3.9.jar
neo4j-community-2.3.9/lib/neo4j-cypher-2.3.9.jar
neo4j-community-2.3.9/lib/scala-library-2.11.7.jar
neo4j-community-2.3.9/lib/scala-reflect-2.11.7.jar
neo4j-community-2.3.9/lib/scala-parser-combinators_2.11-1.0.4.jar
neo4j-community-2.3.9/lib/neo4j-codegen-2.3.9.jar
neo4j-community-2.3.9/lib/neo4j-cypher-compiler-1.9_2.11-2.0.5.jar
neo4j-community-2.3.9/lib/neo4j-cypher-compiler-2.2_2.11-2.2.10.jar
neo4j-community-2.3.9/lib/parboiled-scala_2.11-1.1.7.jar
neo4j-community-2.3.9/lib/parboiled-core-1.1.7.jar
neo4j-community-2.3.9/lib/concurrentlinkedhashmap-lru-1.4.2.jar
neo4j-community-2.3.9/lib/neo4j-cypher-compiler-2.3-2.3.9.jar
neo4j-community-2.3.9/lib/neo4j-cypher-frontend-2.3-2.3.9.jar
neo4j-community-2.3.9/lib/opencsv-2.3.jar
neo4j-community-2.3.9/lib/neo4j-jmx-2.3.9.jar
neo4j-community-2.3.9/lib/neo4j-consistency-check-2.3.9.jar
neo4j-community-2.3.9/lib/neo4j-consistency-check-legacy-2.3.9.jar
neo4j-community-2.3.9/lib/server-api-2.3.9.jar
neo4j-community-2.3.9/lib/neo4j-shell-2.3.9.jar
neo4j-community-2.3.9/lib/jline-2.12.jar
neo4j-community-2.3.9/lib/neo4j-import-tool-2.3.9.jar
neo4j-community-2.3.9/system/lib/asm-5.0.2.jar
neo4j-community-2.3.9/system/lib/neo4j-server-2.3.9.jar
neo4j-community-2.3.9/system/lib/jsr311-api-1.1.2.r612.jar
neo4j-community-2.3.9/system/lib/commons-configuration-1.10.jar
neo4j-community-2.3.9/system/lib/commons-lang-2.6.jar
neo4j-community-2.3.9/system/lib/commons-logging-1.1.1.jar
neo4j-community-2.3.9/system/lib/commons-digester-2.1.jar
neo4j-community-2.3.9/system/lib/commons-beanutils-1.8.3.jar
neo4j-community-2.3.9/system/lib/neo4j-browser-2.3.9.jar
neo4j-community-2.3.9/system/lib/logback-classic-1.1.2.jar
neo4j-community-2.3.9/system/lib/logback-core-1.1.2.jar
neo4j-community-2.3.9/system/lib/slf4j-api-1.7.6.jar
neo4j-community-2.3.9/system/lib/logback-access-1.1.2.jar
neo4j-community-2.3.9/system/lib/jetty-server-9.2.9.v20150224.jar
neo4j-community-2.3.9/system/lib/javax.servlet-api-3.1.0.jar
neo4j-community-2.3.9/system/lib/jetty-http-9.2.9.v20150224.jar
neo4j-community-2.3.9/system/lib/jetty-util-9.2.9.v20150224.jar
neo4j-community-2.3.9/system/lib/jetty-io-9.2.9.v20150224.jar
neo4j-community-2.3.9/system/lib/jetty-webapp-9.2.9.v20150224.jar
neo4j-community-2.3.9/system/lib/jetty-xml-9.2.9.v20150224.jar
neo4j-community-2.3.9/system/lib/jetty-servlet-9.2.9.v20150224.jar
neo4j-community-2.3.9/system/lib/jetty-security-9.2.9.v20150224.jar
neo4j-community-2.3.9/system/lib/jersey-server-1.19.jar
neo4j-community-2.3.9/system/lib/jersey-core-1.19.jar
neo4j-community-2.3.9/system/lib/jersey-servlet-1.19.jar
neo4j-community-2.3.9/system/lib/netty-all-4.0.28.Final.jar
neo4j-community-2.3.9/system/lib/commons-io-2.4.jar
neo4j-community-2.3.9/system/lib/jackson-jaxrs-1.9.13.jar
neo4j-community-2.3.9/system/lib/jackson-core-asl-1.9.13.jar
neo4j-community-2.3.9/system/lib/jackson-mapper-asl-1.9.13.jar
neo4j-community-2.3.9/system/lib/rrd4j-2.2.jar
neo4j-community-2.3.9/system/lib/rhino-1.7R4.jar
neo4j-community-2.3.9/system/lib/bcprov-jdk15on-1.52.jar
neo4j-community-2.3.9/system/lib/bcpkix-jdk15on-1.52.jar
neo4j-community-2.3.9/system/lib/jersey-multipart-1.19.jar
neo4j-community-2.3.9/system/lib/mimepull-1.9.3.jar
neo4j-community-2.3.9/system/lib/neo4j-server-2.3.9-static-web.jar
[root@dev18 srv]#
修改目录名neo4j-community-2.3.9到neo4j~
[root@dev18 srv]# mv neo4j-community-2.3.9/ neo4j
[root@dev18 srv]#
启动
进入neo4j的bin目录,使用./neo4j console ~~
[root@dev18 neo4j]# cd bin
[root@dev18 bin]# ll
total 48
-rwxr-xr-x 1 112 nfsnobody 10712 Jan 18 19:14 neo4j
-rwxr-xr-x 1 112 nfsnobody 3652 Jan 18 19:14 neo4j-import
-rwxr-xr-x 1 112 nfsnobody 4445 Jan 18 19:14 neo4j-installer
drwxr-xr-x 2 112 nfsnobody 4096 Jan 18 19:14 Neo4j-Management
-rwxr-xr-x 1 112 nfsnobody 3520 Jan 18 19:14 neo4j-shell
-rw-r--r-- 1 112 nfsnobody 136 Jan 18 19:14 README.txt
-rwxr-xr-x 1 112 nfsnobody 10642 Jan 18 19:14 utils
查看进程~
[root@dev18 ~]# ps -ef| grep neo4j
root 20854 20815 6 19:55 pts/2 00:00:19 /usr/java/jdk1.7.0_71/bin/java -cp /srv/neo4j/lib/commons-lang3-3.3.2.jar:/srv/neo4j/lib/concurrentlinkedhashmap-lru-1.4.2.jar:/srv/neo4j/lib/jline-2.12.jar:/srv/neo4j/lib/lucene-core-3.6.2.jar:/srv/neo4j/lib/neo4j-codegen-2.3.9.jar:/srv/neo4j/lib/neo4j-consistency-check-2.3.9.jar:/srv/neo4j/lib/neo4j-consistency-check-legacy-2.3.9.jar:/srv/neo4j/lib/neo4j-csv-2.3.9.jar:/srv/neo4j/lib/neo4j-cypher-2.3.9.jar:/srv/neo4j/lib/neo4j-cypher-compiler-1.9_2.11-2.0.5.jar:/srv/neo4j/lib/neo4j-cypher-compiler-2.2_2.11-2.2.10.jar:/srv/neo4j/lib/neo4j-cypher-compiler-2.3-2.3.9.jar:/srv/neo4j/lib/neo4j-cypher-frontend-2.3-2.3.9.jar:/srv/neo4j/lib/neo4j-function-2.3.9.jar:/srv/neo4j/lib/neo4j-graph-algo-2.3.9.jar:/srv/neo4j/lib/neo4j-graph-matching-2.3.9.jar:/srv/neo4j/lib/neo4j-import-tool-2.3.9.jar:/srv/neo4j/lib/neo4j-io-2.3.9.jar:/srv/neo4j/lib/neo4j-jmx-2.3.9.jar:/srv/neo4j/lib/neo4j-kernel-2.3.9.jar:/srv/neo4j/lib/neo4j-logging-2.3.9.jar:/srv/neo4j/lib/neo4j-lucene-index-2.3.9.jar:/srv/neo4j/lib/neo4j-primitive-collections-2.3.9.jar:/srv/neo4j/lib/neo4j-shell-2.3.9.jar:/srv/neo4j/lib/neo4j-udc-2.3.9.jar:/srv/neo4j/lib/neo4j-unsafe-2.3.9.jar:/srv/neo4j/lib/opencsv-2.3.jar:/srv/neo4j/lib/parboiled-core-1.1.7.jar:/srv/neo4j/lib/parboiled-scala_2.11-1.1.7.jar:/srv/neo4j/lib/scala-library-2.11.7.jar:/srv/neo4j/lib/scala-parser-combinators_2.11-1.0.4.jar:/srv/neo4j/lib/scala-reflect-2.11.7.jar:/srv/neo4j/lib/server-api-2.3.9.jar:/srv/neo4j/system/lib/asm-5.0.2.jar:/srv/neo4j/system/lib/bcpkix-jdk15on-1.52.jar:/srv/neo4j/system/lib/bcprov-jdk15on-1.52.jar:/srv/neo4j/system/lib/commons-beanutils-1.8.3.jar:/srv/neo4j/system/lib/commons-configuration-1.10.jar:/srv/neo4j/system/lib/commons-digester-2.1.jar:/srv/neo4j/system/lib/commons-io-2.4.jar:/srv/neo4j/system/lib/commons-lang-2.6.jar:/srv/neo4j/system/lib/commons-logging-1.1.1.jar:/srv/neo4j/system/lib/jackson-core-asl-1.9.13.jar:/srv/neo4j/system/lib/jackson-jaxrs-1.9.13.jar:/srv/neo4j/system/lib/jackson-mapper-asl-1.9.13.jar:/srv/neo4j/system/lib/javax.servlet-api-3.1.0.jar:/srv/neo4j/system/lib/jersey-core-1.19.jar:/srv/neo4j/system/lib/jersey-multipart-1.19.jar:/srv/neo4j/system/lib/jersey-server-1.19.jar:/srv/neo4j/system/lib/jersey-servlet-1.19.jar:/srv/neo4j/system/lib/jetty-http-9.2.9.v20150224.jar:/srv/neo4j/system/lib/jetty-io-9.2.9.v20150224.jar:/srv/neo4j/system/lib/jetty-security-9.2.9.v20150224.jar:/srv/neo4j/system/lib/jetty-server-9.2.9.v20150224.jar:/srv/neo4j/system/lib/jetty-servlet-9.2.9.v20150224.jar:/srv/neo4j/system/lib/jetty-util-9.2.9.v20150224.jar:/srv/neo4j/system/lib/jetty-webapp-9.2.9.v20150224.jar:/srv/neo4j/system/lib/jetty-xml-9.2.9.v20150224.jar:/srv/neo4j/system/lib/jsr311-api-1.1.2.r612.jar:/srv/neo4j/system/lib/logback-access-1.1.2.jar:/srv/neo4j/system/lib/logback-classic-1.1.2.jar:/srv/neo4j/system/lib/logback-core-1.1.2.jar:/srv/neo4j/system/lib/mimepull-1.9.3.jar:/srv/neo4j/system/lib/neo4j-browser-2.3.9.jar:/srv/neo4j/system/lib/neo4j-server-2.3.9.jar:/srv/neo4j/system/lib/neo4j-server-2.3.9-static-web.jar:/srv/neo4j/system/lib/netty-all-4.0.28.Final.jar:/srv/neo4j/system/lib/rhino-1.7R4.jar:/srv/neo4j/system/lib/rrd4j-2.2.jar:/srv/neo4j/system/lib/slf4j-api-1.7.6.jar:/srv/neo4j/conf -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseG1GC -XX:-OmitStackTraceInFastThrow -XX:hashCode=5 -Dneo4j.ext.udc.source=tarball -Dneo4j.home=/srv/neo4j -Dneo4j.instance=/srv/neo4j -Dfile.encoding=UTF-8 org.neo4j.server.CommunityBootstrapper
root 21027 21009 0 20:00 pts/0 00:00:00 grep neo4j
[root@dev18 ~]#
[root@dev18 bin]# ./neo4j console
Starting Neo4j Server console-mode...
2017-03-24 19:55:51.577+0800 INFO No SSL certificate found, generating a self-signed certificate..
2017-03-24 19:55:58.076+0800 INFO Successfully started database
2017-03-24 19:55:58.154+0800 INFO Starting HTTP on port 7474 (2 threads available)
2017-03-24 19:55:58.477+0800 INFO Enabling HTTPS on port 7473
2017-03-24 19:55:58.593+0800 INFO Mounting static content at /webadmin
2017-03-24 19:55:58.671+0800 INFO Mounting static content at /browser
2017-03-24 19:56:03.075+0800 INFO Remote interface ready and available at http://localhost:7474/
访问Admin UI问题
使用http://<IP>:7474访问neo4j的管理页面,访问不了~
解决方法
本文采用的方法,修改<neo4j_home>/conf目录下的neo4j-server.properties配置文件~
[root@dev18 neo4j]# cd conf/
[root@dev18 conf]# ll
total 24
-rw-r--r-- 1 112 nfsnobody 1454 Jan 18 19:14 neo4j-http-logging.xml
-rw-r--r-- 1 112 nfsnobody 1796 Jan 18 19:14 neo4j.properties
-rw-r--r-- 1 112 nfsnobody 3255 Jan 18 19:14 neo4j-server.properties
-rw-r--r-- 1 112 nfsnobody 2288 Jan 18 19:14 neo4j-wrapper.conf
-rw-r--r-- 1 112 nfsnobody 762 Jan 18 19:14 README.txt
drwxr-xr-x 2 root root 4096 Mar 24 19:55 ssl
[root@dev18 conf]#
[root@dev18 conf]#
[root@dev18 conf]# vim neo4j-server.properties

将原先注释掉的选项,去掉注释“#”, 好让其它的ip也能访问~

修改好配置之后,重新启动~
[root@dev18 bin]#
[root@dev18 bin]# ./neo4j console
Starting Neo4j Server console-mode...
2017-03-24 20:09:58.801+0800 INFO Successfully started database
2017-03-24 20:09:58.843+0800 INFO Starting HTTP on port 7474 (2 threads available)
2017-03-24 20:09:59.155+0800 INFO Enabling HTTPS on port 7473
2017-03-24 20:09:59.277+0800 INFO Mounting static content at /webadmin
2017-03-24 20:09:59.385+0800 INFO Mounting static content at /browser
2017-03-24 20:10:03.472+0800 INFO Remote interface ready and available at http://0.0.0.0:7474/
访问http://<IP>:7474,可以展示UI界面了~

设置密码~

设置密码后,进入页面,可以看到很多的说明教程,有兴趣的读者可以搭建一个玩玩~


参考文章:
https://my.oschina.net/wangmengjun/blog/866511
CentOS下Neo4j安装教程的更多相关文章
- CentOS下Mysql安装教程
CentOS下Mysql安装教程 本人学习Linux时使用的是CentOs5.5版本,在该环境中,Mysql的安装方法有很多种,下面我只讲我这次成功了的方法,作为一个记录,供大家参考,同时给自己做一个 ...
- Elasticsearch 在docker和centos下的安装教程
前言 新版本的Elasticsearch不能以root用户来运行.因此,MAC下建议使用Docker来安装. 国内各版本镜像:点击这 Centos7.4 64位 第一步 下载.tar.gz的安装包 不 ...
- Centos下Oracle11gR2安装教程与自动化配置脚本
系统环境准备 开发组件与依赖库安装 安装centos时选择Server with GUI,右面的可以不勾选,后面统一来装 配置本地yum源 以上包如果缺乏可配置本地yum源进行安装 sudo moun ...
- Linux下Java开发环境搭建—CentOS下Mysql安装教程
本人学习Linux时使用的是CentOs5.5版本,在该环境中,Mysql的安装方法有很多种,下面我只讲我这次成功了的方法,作为一个记录,供大家参考,同时给自己做一个笔记. MySQL下载 1.进入网 ...
- Window下Neo4j安装教程
一.neo4j 介绍 Neo4j是一个高性能的,NOSQL图形数据库,它将结构化数据存储在网络上而不是表中.它是一个嵌入式的.基于磁盘的.具备完全的事务特性的Java持久化引擎,但是它将结构化数据存储 ...
- (转载)Centos下Elasticsearch安装详细教程
原文地址:http://www.cnblogs.com/sunny1009/articles/7874251.html Centos下Elasticsearch安装详细教程 1.Elasticsear ...
- Centos下Elasticsearch安装详细教程
Centos下Elasticsearch安装详细教程 1.Elasticsearch简介 ElasticSearch是一个基于Lucene的搜索服务器.它提供了一个分布式多用户能力的全文搜索引擎,基于 ...
- CentOS下一键安装Openstack
CentOS下一键安装Openstack 系统环境:Oracle VirtualBox 4.38CentOS-6.5-x86_64-bin-DVD1.iso 安装前需要修改 /etc/hosts文件, ...
- 淘宝Tengine 2.1.2 稳定版(nginx/1.6.2) Centos 6.5安装教程
淘宝Tengine 2.1.2 稳定版(nginx/1.6.2) Centos 6.5 安装教程 Tengine 简介: Tengine是由淘宝网发起的Web服务器项目.它在Nginx的基础上,针对大 ...
随机推荐
- STM32通用定时器配置
一.STM32通用定时器原理 STM32 系列的CPU,有多达8个定时器,其中TIM1和TIM8是能够产生三对PWM互补输出的高级定时器,常用于三相电机的驱动,它们的时钟由APB2的输出产生.其它6个 ...
- 4- 算法练习leetcode.com
0.五大经典算法 动态规划算法----爬楼梯 分治算法-- 贪心算法---零钱问题 回溯算法---迷宫问题 --深度优先 分支限界法 ----广度优先 1.找出下标范围 1.二分法 li = [1,2 ...
- 【BZOJ1050】[HAOI2006]旅行
[BZOJ1050][HAOI2006]旅行 题面 bzoj 洛谷 题解 先将所有边从小往大排序 枚举钦定一条最小边 再枚举依次枚举最大边,如果两个点联通了就\(break\)统计答案即可 代码 #i ...
- Gitlab+Jenkins学习之路(九)之Jenkins的远程管理和集群
一.Jenkins的远程管理 Jenkins的远程管理方式包含: Shell ssh SSH Plugin ansible.saltstack (1)Shell ssh在项目构建时,jenkins使用 ...
- underscore.js 分析6 map函数
作用:通过转换函数(iteratee迭代器)映射列表中的每个值产生价值的新数组.iteratee传递三个参数:value,然后是迭代 index. _.map([1, 2, 3], function( ...
- Storm 第三章 Storm编程案例及Stream Grouping详解
1 功能说明 设计一个topology,来实现对文档里面的单词出现的频率进行统计.整个topology分为三个部分: SentenceSpout:数据源,在已知的英文句子中,随机发送一条句子出去. S ...
- [TJOI2014]Alice and Bob[拓扑排序+贪心]
题意 给出一个序列的以每一项结尾的 \(LIS\) 的长度a[],求一个序列,使得以每一项为开头的最长下降子序列的长度之和最大. \(n\leq 10^5\) . 分析 最优解一定是一个排列,因为如果 ...
- Maven+spring+springMVC+mybatis+Junit+Log4j配置个人总结
首先粘贴上项目引用地址:http://doc.okbase.net/fengshizty/archive/126397.html 这里对创建步骤不做过多解释,只是针对案例创建demo的一些 ...
- ORM框架学习之EF
首先推荐一篇很好的EF文章翻译,可以系统的学习一遍. <Entity Framework 6 Recipes>中文翻译系列 EF使用体会 优点: 可以省去Ado.net复杂的管道连接代码. ...
- JMeter各个基础组件简介
刚从LoadRunner转到JMeter,对JMeter的各种概念比较懵.在这里记录下.欢迎大家关注我的个人微信号:测试杂货铺. JMeter的各个功能都是它的组件来完成或实现的,下面来对JMeter ...