Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is neo4j-server.properties on Windows?

Tags:

neo4j

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.

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

Update

Neo4j is installed at C:\Program Files\Neo4j Community\bin\neo4j-community.exe

I've created the file at C:\Program Files\Neo4j Community\conf\neo4j-server.properties

Here's the complete contents:

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?

like image 370
jocull Avatar asked Oct 22 '13 14:10

jocull


2 Answers

From the Neo4j startup window, click the "options" button bottom left.

This shows an options windows which includes the path to your conf file:

enter image description here

like image 67
Dick Chesterwood Avatar answered Jan 15 '23 04:01

Dick Chesterwood


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.

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.

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.

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:

Neo4j Windows installation - JAR files

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

Default server config

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

like image 23
David Makogon Avatar answered Jan 15 '23 04:01

David Makogon