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成功:

相关推荐
无敌岩雀1 分钟前
MySQL中的索引
数据库·mysql
a_安徒生24 分钟前
linux安装TDengine
linux·数据库·tdengine
程序员学习随笔27 分钟前
PostgreSQL技术内幕19:逻辑备份工具pg_dump、pg_dumpall
数据库·postgresql
尘浮生1 小时前
Java项目实战II基于微信小程序的校运会管理系统(开发文档+数据库+源码)
java·开发语言·数据库·微信小程序·小程序·maven·intellij-idea
偶尔。5351 小时前
什么是事务?事务有哪些特性?
数据库·oracle
安迁岚1 小时前
【SQL Server】华中农业大学空间数据库实验报告 实验六 视图
数据库·sql·mysql·oracle·实验报告
xoxo-Rachel1 小时前
(超级详细!!!)解决“com.mysql.jdbc.Driver is deprecated”警告:详解与优化
java·数据库·mysql
JH30732 小时前
Oracle与MySQL中CONCAT()函数的使用差异
数据库·mysql·oracle
蓝染-惣右介2 小时前
【MyBatisPlus·最新教程】包含多个改造案例,常用注解、条件构造器、代码生成、静态工具、类型处理器、分页插件、自动填充字段
java·数据库·tomcat·mybatis
冷心笑看丽美人2 小时前
Spring框架特性及包下载(Java EE 学习笔记04)
数据库