Windows 上的 neo4j-server.properties 在哪里? [英] Where is neo4j-server.properties on Windows?

查看:38
本文介绍了Windows 上的 neo4j-server.properties 在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows 上,本文档中描述的 neo4j-server.properties 在哪里?

On Windows, where is neo4j-server.properties as described in this documentation?

http://docs.neo4j.org/chunked/stable/security-server.html

我在任何地方都找不到它,并且在看起来合理的地方自己创建它没有任何效果.

I can't find it anywhere, and creating it myself in places that seem reasonable have no effect.

我希望能够从 localhost 以外的远程 IP 访问服务器.谢谢.

I'd like to be able to access the server from a remote IP other than localhost. Thanks.

Neo4j 安装在 C:Program FilesNeo4j Communityin eo4j-community.exe

Neo4j is installed at C:Program FilesNeo4j Communityin eo4j-community.exe

我在 C:Program FilesNeo4j Communityconf eo4j-server.properties

I've created the file at C:Program FilesNeo4j Communityconf eo4j-server.properties

完整内容如下:

org.neo4j.server.webserver.port=7474

#allow any client to connect
org.neo4j.server.webserver.address=0.0.0.0

但是,这些设置似乎没有生效.我错过了什么吗?

However, the settings don't seem to take effect. Am I missing something?

推荐答案

好的,我想我知道发生了什么:您通过新的简化的 Windows Installer 安装了 1.9.4 stable?如果是这样:这似乎是一个非常有限的开发"安装程序.它有一个简单的 MSI,它有一个简单的 GUI,让您可以选择数据库,然后您可以从 Web 控制台执行所有操作.这与以前在 Windows 上安装的方法不同.我试过了,我放弃了,因为我需要完全控制配置.conf 文件通常位于与 bin 文件夹平行的 conf 文件夹中,不会随此安装程序一起安装.

Ok I think I know what's going on: You installed 1.9.4 stable via the new simplified Windows Installer? If so: That seems to be a very limited 'dev' installer. It has a simple MSI, it has a simple GUI to let you select the database, and then you do everything from the web console. This is a departure from previous methods of installing on Windows. I tried it out, and I abandoned it because I need full control of the configuration. The conf files, normally found in a conf folder parallel to the bin folder, are not installed with this installer.

如果您想要传统的安装程序,请下载企业版.

If you want the traditional installer, grab the enterprise download.

也就是说:除非您在生产中运行,否则我不会在 1.9.x 分支上浪费时间.如果你还在开发/测试阶段,我会直接进入 2.0(里程碑 6 现在可用).您将获得标签(足以切换的理由)、更新的 Cypher 引擎以及许多其他改进.另外:2.0 安装程序仍然是传统配置,带有 conf 文件夹,您可以在其中进行所有需要进行的配置更改.

That said: I wouldn't waste time on the 1.9.x branch unless you're running in production. If you're still in dev/test, I'd go straight to 2.0 (milestone 6 is now available). You'll get Labels (reason enough to switch), updated Cypher engine, and lots of other improvements. Also: the 2.0 installer is still a traditional configuration, complete with conf folder, where you can make all the configuration changes you need to make.

编辑 zip 版本的下载链接现在又回来了,因此您可以选择 exe 或 zip 版本的安装.这意味着您可以像以前一样安装 1.9.4,并且可以完全访问所有配置文件.

EDIT The download link for the zip version is now back, so you can choose either the exe or zip version of installation. This means you can install 1.9.4 just like before, and have full access to all the configuration files.

编辑 2 在与 Neo Technology 的某人交换了一些电子邮件后,我发现,对于这个特定的安装程序,所需的一切都捆绑到一个 JAR 文件中.如果你在安装后查看 bin 文件夹,你会看到这些文件:

EDIT 2 After a bit of email exchange w/someone at Neo Technology, I found out that, for this particular installer, everything needed is bundled into a single JAR file. if you look in the bin folder after installing, you'll see these files:

如果您搜索 JAR 文件(通过 7zip 或类似文件),您将找到默认的服务器配置文件:

If you search the JAR file (via 7zip or something similar), you'll find the default server configuration file:

我怀疑您也可以将 neo4j-server.properties 文件放入 JAR 文件中(虽然我还没有尝试过).

I suspect you could place the neo4j-server.properties file into the JAR file here as well (though I haven't tried).

这篇关于Windows 上的 neo4j-server.properties 在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆