在ubuntu上安装neo4j图形数据库(3.2.0 Community Edition)

前端之家收集整理的这篇文章主要介绍了在ubuntu上安装neo4j图形数据库(3.2.0 Community Edition)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

环境介绍

一台主机,主机名和ip分别为:
ubuntu1 10.3.19.171
三台主机的登录用户名是bigdata,home目录是/home/bigdata

操作系统版本:

bigdata@ubuntu1:~$ uname -a
Linux ubuntu1 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Java版本:

bigdata@ubuntu1:~$ java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11,mixed mode)

安装neo4j到主机ubuntu1上

依次执行如下命令:

bigdata@ubuntu1:~$ sudo wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add -
bigdata@ubuntu1:~$ sudo echo 'deb https://debian.neo4j.org/repo stable/' | sudo tee /etc/apt/sources.list.d/neo4j.list
bigdata@ubuntu1:~$ sudo apt-get update
bigdata@ubuntu1:~$ sudo apt-get install neo4j

修改配置文件,去掉/etc/neo4j/eno4j.conf配置文件中,如下一行的注释。此修改是为了可以在其它主机访问neo4j的web页面

dbms.connectors.default_listen_address=0.0.0.0

启动neo4j

bigdata@ubuntu1:/etc/neo4j$ sudo neo4j console
[sudo] password for bigdata:
Active database: graph.db
Directories in use:
home: /var/lib/neo4j
config: /etc/neo4j
logs: /var/log/neo4j
plugins: /var/lib/neo4j/plugins
import: /var/lib/neo4j/import
data: /var/lib/neo4j/data
certificates: /var/lib/neo4j/certificates
run: /var/run/neo4j
Starting Neo4j.
WARNING: Max 1024 open files allowed,minimum of 40000 recommended. See the Neo4j manual.
2017-05-15 08:01:10.650+0000 INFO ======== Neo4j 3.2.0 ========
2017-05-15 08:01:11.259+0000 INFO Starting...
2017-05-15 08:01:12.701+0000 INFO Bolt enabled on 0.0.0.0:7687.
2017-05-15 08:01:18.589+0000 INFO Started.
2017-05-15 08:01:22.380+0000 INFO Remote interface available at http://localhost:7474/

访问neo4j管理页面:
http://10.3.19.171:7474 初始登录用户名和密码均为neo4j

原文链接:https://www.f2er.com/ubuntu/352975.html

猜你在找的Ubuntu相关文章