Ubuntu 20.04 安装 neo4j

参考 https://debian.neo4j.com/

1. 添加仓库源

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

sudo apt-get install neo4j

配置端口

配置端口以及远程访问

server.default_listen_address=0.0.0.0
server.bolt.enabled=true
#server.bolt.tls_level=DISABLED
#server.bolt.listen_address=:7687
#server.bolt.advertised_address=:7687
server.bolt.listen_address=0.0.0.0:23961
server.bolt.advertised_address=:23961
# HTTP Connector. There can be zero or one HTTP connectors.
server.http.enabled=true
#server.http.listen_address=:7474
#server.http.advertised_address=:7474
server.http.listen_address=0.0.0.0:23962
server.http.advertised_address=:23962
# HTTPS Connector. There can be zero or one HTTPS connectors.
server.https.enabled=false
#server.https.listen_address=:7473
#server.https.advertised_address=:7473
server.https.listen_address=0.0.0.0:23963
server.https.advertised_address=:23963

启动 neo4j

systemctl start neo4j

# 开机启动
systemctl enable neo4j

访问 web 端口

http://localhost:23962

评论栏