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:


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:

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

我用的是这个

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

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

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:

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:

sudo apt-get install neo4j

To install Neo4j Enterprise Edition:

sudo apt-get install neo4j-enterprise

安装流程

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

我用的是 Neo4j version 5.x

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
sudo apt-get install neo4j

请添加图片描述

sudo neo4j console

http://localhost:7474/browser/
在这里插入图片描述初始账号和密码都是: neo4j

设置远程访问

通过运行 neo4j,如下图所示知道,neo4j的配置文件在 /etc/neo4j:
sudo neo4j console
请添加图片描述
备份neo4j的配置文件:

sudo cp neo4j.conf neo4j.conf.bak
sudo vim neo4j.conf

删除前面的注释,0.0.0.0 表示监听所有的 ip :
在这里插入图片描述
如下图所示,远程访问 neo4j成功:
在这里插入图片描述

相关推荐

  1. Ubuntu18.4桌面版安装配置apt update远程访问

    2024-04-30 13:04:02       56 阅读
  2. centos安装mysql并设置远程访问

    2024-04-30 13:04:02       86 阅读
  3. FTP服务器安装远程访问以及安全配置

    2024-04-30 13:04:02       65 阅读
  4. 安装Neo4j

    2024-04-30 13:04:02       62 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-30 13:04:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-30 13:04:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-04-30 13:04:02       87 阅读
  4. Python语言-面向对象

    2024-04-30 13:04:02       96 阅读

热门阅读

  1. 如何衡量一个算法的好坏

    2024-04-30 13:04:02       30 阅读
  2. 软件工程师,如何有效缓解工作压力

    2024-04-30 13:04:02       29 阅读
  3. html知识应用(1)

    2024-04-30 13:04:02       33 阅读
  4. MySQL 迁移到 Oracle 需要注意的问题

    2024-04-30 13:04:02       35 阅读
  5. PHP深入实践:构建RESTful API接口与安全措施

    2024-04-30 13:04:02       33 阅读
  6. 头歌:RDD的创建 -Scala

    2024-04-30 13:04:02       50 阅读
  7. 如何使用 Nginx 进行负载均衡

    2024-04-30 13:04:02       32 阅读
  8. k8s负载均衡

    2024-04-30 13:04:02       30 阅读
  9. Elasticsearch内存占用分析

    2024-04-30 13:04:02       29 阅读