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

相关推荐
飞翔的佩奇8 分钟前
xxl-job适配sqlite本地数据库及mysql数据库。可根据配置指定使用哪种数据库。
数据库·spring boot·mysql·sqlite·xxl-job·任务调度
吱吱鼠叔39 分钟前
MATLAB数据文件读写:1.格式化读写文件
前端·数据库·matlab
小哇66641 分钟前
spring-TransactionTemplate 编程式事务
数据库·spring
如意机反光镜裸1 小时前
CentOS7安装MySQL教程
数据库·mysql
冰镇毛衣1 小时前
1.4 MySql配置文件
数据库·mysql
攻城狮的梦1 小时前
redis集群模式连接
数据库·redis·缓存
标贝科技2 小时前
ChatGPT对话训练数据采集渠道有哪些
数据库·人工智能·机器学习·chatgpt
乌啼霜满天2492 小时前
如何将MySQL卸载干净(win11)
数据库·mysql
2的n次方_2 小时前
掌握Spring Boot数据库集成:用JPA和Hibernate构建高效数据交互与版本控制
数据库·spring boot·hibernate
NaZiMeKiY3 小时前
SQLServer数据分页
数据库·sql·sqlserver