本文介绍了对Neo4j 3.0中的读写数据库的只读Web访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此新更新中,对Neo4j的核心进行了很多更改,这确实令人兴奋.

There has been quite a few changes to the core of Neo4j in this new update, which is really exciting.

Neo4j以前的版本中缺少的一件事是允许用户使用Web界面的功能.好吧,如果您不介意他们能够删除所有内容,或者不介意使整个数据库对所有人(包括您自己)都是只读的,他们可以使用它.

One thing that was lacking in previous Neo4j releases was the ability to let users use the web interface. Well, they could use it if you didn't mind them being able to delete everything, or you didn't mind making the whole database read-only to everyone, including yourself.

3.x中现在有解决方法吗?我看到您对Web界面进行了一些非常棒的改进(似乎在所有会议和YouTube视频中都受到关注)-但是,我不能让我的用户使用其中任何一种,因为他们可能会.

Is there a workaround now in 3.x? I see you've made some pretty awesome improvements to the web interface (which seem to have flown under the radar in all the conferences and YouTube videos) - however I can't let my users use any of this awesome because they might match (n) detach delete (n).

谢谢! :)

推荐答案

如果您可以访问企业版或不介意neo4j-ha的AGPL许可证,则可以创建只读从属.

If you have access to enterprise version or don't mind the AGPL license of neo4j-ha then you can create a read-only slave.

请查看neo4j 高可用性文档进行配置.

Have a look at neo4j high availability documentation for configuration.

尤其要设置以下属性:

# Only allow read operations from this Neo4j instance. This mode still requires
# write access to the directory for lock purposes.
dbms.read_only=true

# Whether this instance should only participate as slave in cluster. If set to
# true, it will never be elected as master.
ha.slave_only=true

这篇关于对Neo4j 3.0中的读写数据库的只读Web访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 18:10