Centos 安装 neo4j

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.

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

相关文章

来自专栏Golang语言社区

Go源码编译

This is a part of a larger effort that I’m calling GopherSource, and our goal is...

481
来自专栏阿尔法go

爬虫系列(1)-----python爬取猫眼电影top100榜

对于Python初学者来说,爬虫技能是应该是最好入门,也是最能够有让自己有成就感的,今天在整理代码时,整理了一下之前自己学习爬虫的一些代码,今天先上一个简单的例...

4058
来自专栏前端架构

linux上最方便安装nginx的方式

nginx is a high performance web server software. It is a much more flexible and ...

682
来自专栏Netkiller

How Badoo saved one million dollars switching to PHP7

How Badoo saved one million dollars switching to PHP7 By Badoo on 14 Mar 2016 - ...

2974
来自专栏Hongten

How to create a project with Oracle Policy Modeling

This blog is about how to create a project with Oracle Policy Modeling.

432
来自专栏菩提树下的杨过

iframe高度自适应的IE解决方案

主页面main.html  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "ht...

1838
来自专栏前端萌媛的成长之路

Setting up your own Ghost theme

1212
来自专栏张善友的专栏

Setting Up KeePass For Centos 6

This mini-howto describes how to set up KeePass on Centos 6. It requires buildin...

1768
来自专栏张善友的专栏

AMF: ASP.NET Mobile Framework

ASP.NET移动框架(AMF)是一种最常用的平板电脑和智能手机上Web应用程序的框架,基于jQuery Mobile(http://jquerymobile....

17910
来自专栏技术小黑屋

Install Lsusb in Mac OSX

To continue doing as the following, make sure you have installed homebrew in you...

641

扫描关注云+社区