下载安装编译好的
官网地址:https://neo4j.com/
wget https://neo4j.com/artifact.php?name=neo4j-community-3.4.7-unix.tar.gz
# 解压neo4j包
tar xf artifact.php?name=neo4j-community-3.4.7-unix.tar.gz
修改配置文件(进入到目录)
cd conf
vim neo4j.conf
添加下面第一条打开对外访问
dbms.connectors.default_listen_address=0.0.0.0 #打开对外访问
dbms.connector.bolt.address=0.0.0.0:7687 #
dbms.security.auth_enabled=false #不使用密码访问
启动neo4j
./bin/neo4j start #停止的话是stop
➜ neo4j-community-3.4.7 ./bin/neo4j start
Active database: graph.db
Directories in use:
home: /root/neo4j-community-3.4.7
config: /root/neo4j-community-3.4.7/conf
logs: /root/neo4j-community-3.4.7/logs
plugins: /root/neo4j-community-3.4.7/plugins
import: /root/neo4j-community-3.4.7/import
data: /root/neo4j-community-3.4.7/data
certificates: /root/neo4j-community-3.4.7/certificates
run: /root/neo4j-community-3.4.7/run
Starting Neo4j.
Started neo4j (pid 31203). It is available at http://0.0.0.0:7474/
There may be a short delay until the server is ready.
See /root/neo4j-community-3.4.7/logs/neo4j.log for current status.
Yum安装
cd /tmp
wget http://debian.neo4j.org/neotechnology.gpg.key
rpm --import neotechnology.gpg.key
cat <<EOF> /etc/yum.repos.d/neo4j.repo
[neo4j]
name=Neo4j Yum Repo
baseurl=http://yum.neo4j.org/stable
enabled=1
gpgcheck=1
EOF
安装
yum install neo4j -y
ubuntu安装
略