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 条评论
登录 后参与评论

相关文章

来自专栏电光石火

显示mybatis的执行的sql

显示mybatis的执行sql 让mybatis也像hibernate.show_sql一样显示执行sql 在log4j.properties 添加 log4j...

32570
来自专栏李成熙heyli

Deploy Using Travis-CI And Github Webhook — webpack doc as an example

Overview Some friends and I have been running webpack-china for a few months. A...

26380
来自专栏Netkiller

CentOS 7.3 + Server JRE 1.8 + Hadoop-2.8.0

本文节选自《Netkiller Linux 手札》由于工作的关系最近几年没有使用hadoop,今天看了一下版本已经到了2.8, 跟数年前用的版本差异还是很大的。...

53260
来自专栏我爱编程

conda update

DESCRIPTION usage: conda update [-h] [-y] [--dry-run] [-f] [--file F...

15120
来自专栏编程坑太多

springboot (六) 多数据源

17730
来自专栏lgp20151222

配置文件错误导致jenkins无法启动 org.xmlpull.v1.XmlPullParserException: only 1.0 is supported as <?xml version no

这个报错在2.87升级到2.103之后出现,我猜测了下出现的原因可能是需要一些插件更新。毕竟我由于网络原因有一部分插件更新失败....

36220
来自专栏一个会写诗的程序员的博客

Java Web 实现导航栏 active 状态随着页面自动切换

https://github.com/EasyKotlin/chatper15_net_io_img_crawler

12520
来自专栏公众号_薛勤的博客

Spring MVC自定义403,404,500状态码返回页面

14730
来自专栏一个会写诗的程序员的博客

《Spring Boot极简教程》第7章 Spring Boot集成模板引擎

其实,没有任何一个模板引擎(jsp,velocity,thymeleaf,freemarker,etc)可以完全实现MVC绝对的分层,只有“自由度”上的界定罢了...

12540
来自专栏技术沉淀

Rails里应用Friendly Id

13130

扫码关注云+社区

领取腾讯云代金券