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

查看:274
本文介绍了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 Files\Neo4j Community\bin\neo4j-community.exe

我已经在C:\Program Files\Neo4j Community\conf\neo4j-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稳定版?如果是这样:那似乎是一个非常有限的"dev"安装程序.它具有一个简单的MSI,它具有一个简单的GUI,可让您选择数据库,然后从Web控制台执行所有操作.这与以前在Windows上进行安装的方法有所不同.我尝试了一下,然后放弃了它,因为我需要完全控制配置.通常在与bin文件夹平行的conf文件夹中找到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:

如果您通过7zip或类似方式搜索JAR文件,则会找到默认的服务器配置文件:

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天全站免登陆