首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Centos 安装 neo4j

Centos 安装 neo4j

作者头像
庞小明
发布2018-03-07 17:17:14
1.3K0
发布2018-03-07 17:17:14
举报
文章被收录于专栏:pangguomingpangguoming

This is experimental and not considered safe for production. You have been warned.

Please note that this repo contains pre-release as well as release versions of Neo4j. To ensure that you get a release version you must specify an explicit version when installing.

First, you'll want our key:

cd /tmp
wget http://debian.neo4j.org/neotechnology.gpg.key
rpm --import neotechnology.gpg.key

Then, you'll want to add our yum repo to /etc/yum.repos.d/neo4j.repo:

cat <<EOF>  /etc/yum.repos.d/neo4j.repo
[neo4j]
name=Neo4j Yum Repo
baseurl=http://yum.neo4j.org
enabled=1
gpgcheck=1
EOF

Finally, install a package

yum install neo4j-2.2.6





=============================================方法二================================================================================

Run the following commands to download and import neotechnology's public gpg key into the rpm keyring

cd /tmp
wget http://debian.neo4j.org/neotechnology.gpg.key
sudo rpm --import neotechnology.gpg.key

Create the neo4j repo file using you editor of choice and add it to the yum repos definition directory. Add the following lines to the neo4j.repo file

[neo4j]  name=Neo4j Yum Repo  baseurl=http://yum.neo4j.org enabled=1  gpgcheck=1

nano neo4j.repo
sudo cp neo4j.repo /etc/yum.repos.d/

Finally run the command to install neo4j

sudo yum install neo4j

Here are some things to note with the install:

  • - An java jdk (openjdk) is installed and configured for you even if you already have one on the server.
  • - The neo4j binaries are installed to /usr/share/neo4j
  • - The neo4j properties files are installed to /etc/neo4j
  • - The default/initial database location is /var/lib/neo4j
  • - Neo4j is installed as a service in the stopped state. You can start it by running sudo service neo4j start. By default, the neo4j instance is only accessible viahttp://localhost:7474/. If you want to enable outside access, you need to uncomment the line in the neo4j-server.properties file: #org.neo4j.server.webserver.address=0.0.0.0 and restart the server.
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2016-10-13 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档