ubuntu sudo apt-get install neo4j 配置安装与设置远程访问

文章目录

下载

neo4j 官方的下载地址,进入页面之后,往下滑:
https://neo4j.com/deployment-center/#community

点击 Visit https://debian.neo4j.com/

Adding the Debian repository

The Neo4j Debian repository can be used on Debian and Debian-based distributions like Ubuntu.

Documentation for the Neo4j 3.0 (and above) Debian package is available here.

This repository

To set up a repository that will always have the very latest version of Neo4j, run:

bash 复制代码
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.com stable latest' | sudo tee /etc/apt/sources.list.d/neo4j.list
sudo apt-get update

To avoid the risk of the apt package manager accidentally forcing a database upgrade, different major and minor releases of Neo4j are available separately inside the repository. When adding the Neo4j repository to apt, you must specify the major version (and minor version if using 4.x Neo4j) you wish to use.

Here are some examples:

Just give me the latest Neo4j versions

This is a good place to start if you are unsure, but we do not recommend this for production or business critical installations:

bash 复制代码
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.com stable latest' | sudo tee /etc/apt/sources.list.d/neo4j.list
sudo apt-get update

Neo4j version 5.x

我用的是这个

bash 复制代码
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.com stable 5' | sudo tee /etc/apt/sources.list.d/neo4j.list
sudo apt-get update

Neo4j version 4.4

bash 复制代码
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.com stable 4.4' | sudo tee /etc/apt/sources.list.d/neo4j.list
sudo apt-get update

Neo4j version 3.5

bash 复制代码
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.com stable 3.5' | sudo tee /etc/apt/sources.list.d/neo4j.list
sudo apt-get update

Neo4j versions before 3.4

Versions of Neo4j before 3.4 are all grouped together under the legacy label:

bash 复制代码
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.com stable legacy' | sudo tee /etc/apt/sources.list.d/neo4j.list
sudo apt-get update

Installing Neo4j

To install Neo4j Community Edition:

bash 复制代码
sudo apt-get install neo4j

To install Neo4j Enterprise Edition:

bash 复制代码
sudo apt-get install neo4j-enterprise

安装流程

上述是 neo4j的说明文档,我的安装步骤如下:

我用的是 Neo4j version 5.x

bash 复制代码
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.com stable 5' | sudo tee /etc/apt/sources.list.d/neo4j.list
sudo apt-get update
bash 复制代码
sudo apt-get install neo4j
bash 复制代码
sudo neo4j console

http://localhost:7474/browser/
初始账号和密码都是: neo4j

设置远程访问

通过运行 neo4j,如下图所示知道,neo4j的配置文件在 /etc/neo4j:
sudo neo4j console

备份neo4j的配置文件:

bash 复制代码
sudo cp neo4j.conf neo4j.conf.bak
bash 复制代码
sudo vim neo4j.conf

删除前面的注释,0.0.0.0 表示监听所有的 ip :

如下图所示,远程访问 neo4j成功:

相关推荐
DBA_G23 分钟前
GBase 8a MPP集群个人电脑安装环境浅析
数据库
小林ixn23 分钟前
别再 MySQL + Milvus 双写了:PostgreSQL + pgvector 一张表搞定 AI 长期记忆
数据库·postgresql·agent
深盾科技_Virbox26 分钟前
换机或重装后软件许可怎么恢复:先核对哪四项
java·服务器·数据库
知行产研29 分钟前
亚太工程机械市场:中国制造“换道超车“,价值重心从“卖铁“转向“卖系统“
数据库·制造
云贝贝贝33 分钟前
白天稳如狗半夜就抖:OceanBase 合并转储把读写延迟顶了上去
数据库·sql·oceanbase
ss27336 分钟前
AI时代首先数据库-PostgreSQL实战笔记 | 24 PostgreSQL WAL日志与崩溃恢复原理
数据库·笔记·postgresql
JavaPub-rodert37 分钟前
王仕宇分享:Oxigraph 是什么?用 Rust + RocksDB 搭一个轻量 RDF/SPARQL 知识图谱数据库
数据库·rust·知识图谱
ycydynq1 小时前
django利用不涉及数据库form自定义表单 表单元素验证
数据库·django·sqlite
木白CPP1 小时前
Persistence subsystem 笔记
数据库·笔记
广州智造1 小时前
Radioss破坏模型FAILJOHNSON (Johnson-cook) 和 FAILTAB1
运维·数据库·自动化·仿真·建模·后处理·前处理