<commit_before>Installation
============

Neo4j can be installed as a server, running either as a headless application or system daemon.
For Java developers, it is also possible to use Neo4j as a library, embedded in your application.

== Server Installation ==

1. Download the latest release from http://neo4j.org/download
   * select the appropriate version for your platform
2. Extract the contents of the archive
   * refer to the top-level extracted directory as +NEO4J-HOME+
3. Use the scripts in the +bin+ directory
   * for Linux/MacOS, run `$NEO4J_HOME/bin/neo4j start`
   * for Windows, double-click on `%NEO4J_HOME%\bin\Neo4j`
4. Refer to the packaged information in the +doc+ directory for details

=== As a Windows service ===

With administrative rights, Neo4j can be isntalled as a Windows service.

1. Right-click on `%NEO4J_HOME%\bin\InstallNeo4j`
2. Choose `Run as administrator`

To uninstall, run `UninstallNeo4j` as ad administrator.


=== Linux daemon ===



== Embedded Installation ==<commit_msg>added instructions for installing as a service in windows and linux<commit_after>Installation
============

Neo4j can be installed as a server, running either as a headless application or system daemon.
For Java developers, it is also possible to use Neo4j as a library, embedded in your application.

== Server Installation ==

1. Download the latest release from http://neo4j.org/download
   * select the appropriate version for your platform
2. Extract the contents of the archive
   * refer to the top-level extracted directory as +NEO4J-HOME+
3. Use the scripts in the +bin+ directory
   * for Linux/MacOS, run `$NEO4J_HOME/bin/neo4j start`
   * for Windows, double-click on `%NEO4J_HOME%\bin\Neo4j`
4. Refer to the packaged information in the +doc+ directory for details

=== As a Windows service ===

With administrative rights, Neo4j can be isntalled as a Windows service.

1. Right-click on `%NEO4J_HOME%\bin\InstallNeo4j`
2. Choose `Run as administrator`

To uninstall, run `UninstallNeo4j` as ad administrator.


=== Linux Service ===

Neo4j can participate in the normal system startup and shutdown process.
The following procedure should work on most popular Linux distributions:

1. `cd $NEO4J_HOME`
2. `sudo ./bin/neo4j install`
   * if asked, enter your password to gain super-user privileges
3. `service neo4j-server status`
   * should indicate that the server is not running
4. `service neo4j-server start`
   * will start the server


== Embedded Installation ==
{'fraction_non_alphanumeric': 0.0842988413903316, 'fraction_numerical': 0.01797842588893328, 'mean_word_length': 4.282700421940929, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3092762', 'n_tokens_mistral': 751, 'n_tokens_neox': 724, 'n_words': 327}