Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Neo4j Cookbook
  • Table Of Contents Toc
Neo4j Cookbook

Neo4j Cookbook

By : Ankur Goel
3 (3)
close
close
Neo4j Cookbook

Neo4j Cookbook

3 (3)
By: Ankur Goel

Overview of this book

If you are already using Neo4j in your application and want to learn more about data analysis or database graphs, this is the book for you. This book also caters for your needs if you are looking to migrate your existing application to Neo4j in the future. We assume that you are already familiar with any general purpose programming language and have some familiarity with Neo4j.
Table of Contents (12 chapters)
close
close
11
Index

Common configurations of Neo4j

Neo4j is very flexible in terms of configuration, and it can be changed to achieve performance, security, and flexibility.

In this recipe, you will learn about the common configuration files of Neo4j.

Getting ready

To get started with this recipe, install Neo4j using the steps from the earlier recipes of this chapter.

Before getting into the recipe, here are some important points that you need to consider:

  • The main configuration file can be found at conf/neo4j-server.properties
  • The default server logging configuration file is at conf/log4j.properties
  • Tuning parameters can be tuned in the conf/neo4j.properties file
  • The configuration file for a wrapper used in daemonizing can be found at conf/neo4j-wrapper.properties
  • The logging configuration for the HTTP protocol is found in the conf/neo4j-http-logging.xml file

How to do it...

The Neo4j shell can also be used to access a remote graph database. To do so, perform the following steps:

  1. Change the following settings:

    In the server primary configuration file, add this line:

    enable_remote_shell = true
    

    The default port for remote shell access can be changed by adding the following line:

    enable_remote_shell_port=1234
    

    Now, you can access the remote database.

  2. The Neo4j web console, by default, can be accessed only from the localhost. If you want to access the web console from any machine (which you should never do as anyone can then play with your graph database), then perform the following tasks:
    1. In the server primary configuration file, uncomment this line:
      org.neo4j.server.webserver.address=0.0.0.0

      The default port for remote shell access can be changed by editing the following line:

      org.neo4j.server.webserver.port=7473
    2. Now, restart the Neo4j server using the following command:
      ./neo4j restart
      

How it works...

Neo4j comes with lots of configuration options, and by changing the parameters in different configuration files, you can configure each part of it.

There's more…

To find out more about the configuration options, check out http://neo4j.com/docs/stable/server-configuration.html.

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Neo4j Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon