先安装java8:
sudo apt-get update
sudo apt-get install openjdk-8-jdk
然后安装neo4j
wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.org/repo stable/' | sudo tee -a /etc/apt/sources.list.d/neo4j.list
sudo apt-get update
sudo apt-get install neo4j
sudo nano /etc/neo4j/neo4j.conf
(把以下这行的注释取消)
dbms.connectors.default_listen_address=0.0.0.0
接着执行:
sudo ufw allow 7474
sudo ufw allow 7687
sudo service neo4j start(重启就restart)
等待1分钟左右,不行就restart然后再等
最后访问当前ip:7474即可进入主页
初始密码:
neo4j:neo4j
输入后会提示输入新密码