You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/installation/osx.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ If it is not already installed, get link:https://openjdk.org/[OpenJDK 21] or lin
10
10
11
11
You can install Neo4j on macOS either by downloading and extracting a TAR archive or by using the Homebrew package manager.
12
12
13
-
=== Install Neo4j using a tar archive
13
+
=== Install Neo4j using a TAR archive
14
14
15
-
. Download the Linux/Mac Executable {neo4j-version-exact} (TAR) release from link:{neo4j-download-center-uri}[Neo4j Deployment Center].
15
+
. Download the Linux / Mac Executable {neo4j-version-exact} (tar) release from link:{neo4j-download-center-uri}[Neo4j Deployment Center].
16
16
. Extract the contents of the archive, using `tar -xf <filename>` or by double-clicking the file.
17
17
. Place the extracted files in a permanent home on your server and set the environment variable `NEO4J_HOME` to point to the extracted directory, for example, `export NEO4J_HOME=/path/to/_<NEO4J_HOME>` to make it easier to refer to it later.
18
18
. (Recommended) xref:configuration/file-locations.adoc#file-locations-file-locations[Change the default locations] of the _data_, _conf_, _certificates_, _licenses_, and _plugins_ (if you plan to use custom plugins) directories by setting the environment variable `NEO4J_CONF` and the respective xref:configuration/configuration-settings.adoc#_server_directories_settings[`server.directories.*`] settings to point to the desired locations.
Before you install Neo4j on Windows, check xref:installation/requirements.adoc[System Requirements] to see if your setup is suitable.
6
-
6
+
If it is not already installed, get link:https://www.oracle.com/java/technologies/downloads/?er=221886[OracleJDK 21] or link:https://www.azul.com/downloads/[ZuluJDK 21].
7
7
8
8
[[windows-console]]
9
-
== Windows console application
9
+
== Install and start Neo4j
10
10
11
-
. If it is not already installed, get link:https://openjdk.org/[OpenJDK 21] or link:https://www.oracle.com/java/technologies/downloads/?er=221886[Oracle Java 21].
12
-
. Download the latest release from link:{neo4j-download-center-uri}[Neo4j Deployment Center].
13
-
+
14
-
Select the appropriate ZIP distribution.
15
-
. Check that the SHA hash of the downloaded file is correct:
16
-
.. To find the correct SHA hash, go to Neo4j Deployment Center and click `SHA-256`, which is located below your downloaded file.
17
-
.. Using the appropriate commands for your platform, display the `SHA-256` hash for the file that you downloaded.
18
-
.. Ensure that the two are identical.
19
-
. Right-click the downloaded file and click *Extract All*.
20
-
. Place the extracted files in a permanent home on your server and set the environment variable `NEO4J_HOME` to point to the extracted directory, for example, `export NEO4J_HOME=\path\to\_<NEO4J_HOME>` to make it easier to refer to it later.
21
-
. xref:configuration/file-locations.adoc#file-locations-file-locations[Change the default locations] of the _data_, _conf_, _certificates_, _licenses_, and _plugins_ (if you plan to use custom plugins) directories by setting the environment variable `NEO4J_CONF` and the respective xref:configuration/configuration-settings.adoc#_server_directories_settings[`server.directories.*`] settings to point to the desired locations.
11
+
You can install Neo4j on Windows either by downloading and extracting a ZIP archive, by running it as a Windows service, or by using the Windows PowerShell module.
12
+
13
+
=== Install Neo4j using a zip archive
14
+
15
+
. Download the Windows Executable {neo4j-version-exact} (zip) release from link:{neo4j-download-center-uri}[Neo4j Deployment Center].
16
+
. Right-click the downloaded file and select *Extract All* to extract the contents of the archive.
17
+
. Place the extracted files in a permanent home on your server and set the environment variable `NEO4J_HOME` to point to the extracted directory, for example, `setx NEO4J_HOME "C:\neo4j\neo4j-<NEO4J_VERSION>"` to make it easier to refer to it later.
18
+
. (Recommended) xref:configuration/file-locations.adoc#file-locations-file-locations[Change the default locations] of the _data_, _conf_, _certificates_, _licenses_, and _plugins_ (if you plan to use custom plugins) directories by setting the environment variable `NEO4J_CONF` and the respective xref:configuration/configuration-settings.adoc#_server_directories_settings[`server.directories.*`] settings to point to the desired locations.
22
19
+
23
20
[NOTE]
24
21
====
25
22
Storing your Neo4j files outside `NEO4J_HOME` will simplify the upgrade process later because you will be able to replace the DBMS binaries without affecting the configuration and state.
26
23
Otherwise, these Neo4j files will remain in the old installation folder and may be accidentally overwritten during an upgrade or deleted during a subsequent uninstall.
27
24
====
28
-
. Accept either the commercial or the evaluation license agreement before running the Neo4j Enterprise Edition.
25
+
. label:enterprise[Enterprise Edition] Accept either the commercial or the evaluation license agreement.
29
26
If you are using Community Edition, you can skip this step.
30
27
* Use one of the following options to accept the commercial license agreement.
31
28
See the link:https://legal.neo4j.com/[Neo4j licensing] page for details on the available agreements.
32
-
+
33
-
** Set it as an environment variable using `set NEO4J_ACCEPT_LICENSE_AGREEMENT=yes`.
34
-
** Run `$NEO4J_HOME\bin\neo4j-admin server license --accept-commercial`
35
-
* Use one of the following options to accept the link:https://neo4j.com/terms/enterprise_us/[Neo4j Evaluation Agreement for Neo4j Software].
36
-
+
37
-
** Set it as an environment variable using `set NEO4J_ACCEPT_LICENSE_AGREEMENT=eval`.
38
-
** Run `$NEO4J_HOME\bin\neo4j-admin server license --accept-evaluation`.
29
+
** Set the environment variable `NEO4J_ACCEPT_LICENSE_AGREEMENT=yes`.
30
+
** Run `%NEO4J_HOME%\bin\neo4j-admin server license --accept-commercial`
31
+
* Use one of the following options to accept the link:https://neo4j.com/terms/enterprise_us/[Neo4j Evaluation Agreement for Neo4j Software]:
32
+
** Set the environment variable `NEO4J_ACCEPT_LICENSE_AGREEMENT=eval`.
33
+
** Run `%NEO4J_HOME%\bin\neo4j-admin server license --accept-evaluation`.
39
34
. Before starting up the database for the first time, it is recommended to use the `set-initial-password` command of `neo4j-admin` to define the password for the native user `neo4j`.
40
35
+
41
36
If the password is not set explicitly using this method, it will be set to the default password `neo4j`.
42
37
In that case, you will be prompted to change the default password at first login. +
43
38
For more information, see xref:configuration/set-initial-password.adoc[].
44
-
. Start Neo4j:
45
-
* To run Neo4j as a console application, use: `$NEO4J_HOME\bin\neo4j console`.
46
-
* To install Neo4j as a service use: `$NEO4J_HOME\bin\neo4j windows-service install`.
47
-
For additional commands and to learn about the Windows PowerShell module included in the Zip file, see xref:installation/windows.adoc#powershell[Windows PowerShell module].
48
-
. Open _\http://localhost:7474/_ in your web browser.
49
-
. Connect using the username `neo4j` with your password or the default password `neo4j`.
50
-
You will then be prompted to change the password.
51
-
. Stop the server by typing `Ctrl-C` in the console.
39
+
. Start Neo4j as a console application by running `%NEO4J_HOME%\bin\neo4j console` in your command prompt.
52
40
53
41
54
42
[[windows-service]]
55
-
== Windows service
43
+
=== Install Neo4j as a Windows service
56
44
57
-
Neo4j can also be run as a Windows service.
45
+
You can install Neo4j as a Windows service.
58
46
59
47
[WARNING]
60
48
====
61
49
By default, the Neo4j Windows service runs as the LocalSystem account, which has full access to the system.
62
50
This is a security risk, and it is recommended to run the service as a user without full LocalSystem privileges.
63
51
====
64
52
65
-
=== Install the Windows service
66
-
67
-
Install the service with `bin\neo4j windows-service install`, and start it with `bin\neo4j start`.
68
-
69
-
The available commands for `bin\neo4j` are: `version`, `help`, `console`, `start`, `stop`, `restart`, `status`, and `windows-service`.
53
+
. Create a user account that the Neo4j service will run as using using services.msc, or the sc (Service Control) command.
54
+
You can use an existing user account, but it must have the `Log on as a service` right.
55
+
. Follow the steps in the <<_install_neo4j_using_a_zip_archive, Install Neo4j using a zip archive>> section to download and extract the ZIP archive and set up the environment variables.
56
+
. Run the following command in your command prompt to install the service:
57
+
+
58
+
[source, bash]
59
+
----
60
+
%NEO4J_HOME%\bin\neo4j windows-service install
61
+
----
62
+
. Start the Neo4j service by running `%NEO4J_HOME%\bin\neo4j start`.
70
63
71
64
[NOTE]
72
65
====
73
-
When installing a new release of Neo4j, you must first run `bin\neo4j windows-service uninstall` on any previously installed versions.
66
+
When installing a new release of Neo4j, you must first run `%NEO4J_HOME%\bin\neo4j windows-service uninstall` on any previously installed versions.
67
+
Then, install the new version using the `install` command as described above.
74
68
====
75
69
76
70
[[windows-update-service]]
77
-
=== Change the Windows service configuration
71
+
=== Change the Neo4j Windows service configuration
78
72
79
73
When Neo4j is installed as a service, the Java options are stored in the service configuration file.
80
74
If you want to change any of these options or environment variables after the service is installed, you must update and restart the service for the changes to take effect.
81
75
For example, updating the value of `server.memory.heap.initial_size` in the default xref:configuration/file-locations.adoc[_neo4j.conf_] file or by using the `NEO4J_CONF` environment variable will not automatically apply the changes.
82
76
The service needs to be updated and restarted to pick them up.
83
-
To update the service, run `bin\neo4j windows-service update`.
77
+
To update the service, run `%NEO4J_HOME%\bin\neo4j windows-service update`.
84
78
Then restart the service to run it with the new configuration.
85
79
86
80
The same applies to the path to where Java is installed on the system.
87
-
If the path changes, for example when upgrading to a new version of Java, it is necessary to run the `update-service` command and restart the service.
81
+
If the path changes, for example when upgrading to a new version of Java, it is necessary to run the `%NEO4J_HOME%\bin\neo4j windows-service update` command and restart the service.
88
82
Then, the new Java location will be used by the service.
The Neo4j PowerShell module allows administrators to:
122
-
123
-
* Install, start, and stop Neo4j Windows® Services.
124
-
* Start tools, such as `Neo4j Admin` and `Cypher Shell`.
113
+
=== Install Neo4j using PowerShell
125
114
115
+
The Neo4j PowerShell module allows administrators to install, start, and stop Neo4j Windows® Services, as well as perform various administrative tasks using `Neo4j Admin` and `Cypher Shell`.
126
116
The PowerShell module is installed as part of the https://neo4j.com/deployment-center/[ZIP file] distributions of Neo4j.
117
+
It requires PowerShell 5.1 or later (PowerShell 7.x recommended) and is supported on 64-bit Windows operating systems.
127
118
128
-
129
-
[[powershell-requirements]]
130
-
=== System requirements
131
-
132
-
* Requires PowerShell v2.0 or above.
133
-
* Supported on either 32 or 64-bit operating systems.
134
-
135
-
136
-
[[powershell-windows]]
137
-
=== Manage Neo4j on Windows
138
-
139
-
On Windows, it is sometimes necessary to _Unblock_ a downloaded ZIP file before you can import its contents as a module.
140
-
141
-
. Right-click on the ZIP file and choose *Properties*. +
119
+
. Unblock the downloaded Neo4j ZIP file if necessary to be able to import the module:
120
+
.. Right-click on the ZIP file and choose *Properties*. +
142
121
A dialog appears with an *Unblock* button.
143
-
. Click the *Unblock* button to enable the import of the module.
144
-
+
145
-
Running scripts has to be enabled on the system.
146
-
This can, for example, be achieved by executing the following from an elevated PowerShell prompt:
122
+
.. Click the *Unblock* button to enable the import of the module.
123
+
.. Click *Apply* and then *OK* to close the dialog.
124
+
. Right-click the downloaded file and select *Extract All* to extract the contents of the archive.
125
+
. Run the following command from an elevated PowerShell prompt to enable script execution:
147
126
+
148
127
[source,powershell]
149
128
----
150
129
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
151
130
----
152
131
+
153
132
For more information, see https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7.5[About execution policies].
154
-
133
+
+
134
+
[NOTE]
135
+
====
155
136
The PowerShell module displays a warning if it detects that you do not have administrative rights.
137
+
====
156
138
157
-
158
-
[[powershell-module-import]]
159
-
=== Import the module file
160
-
161
-
The module file is located in the _bin_ directory of your Neo4j installation.
162
-
163
-
. Assuming that Neo4j is installed in _C:\Neo4j_, run the following command to import the module:
139
+
. Set the environment variable `NEO4J_HOME` to point to the directory where you have installed Neo4j.
140
+
For example, you can run the following command in your PowerShell session, assuming you have installed Neo4j in `C:\Neo4j`:
141
+
+
142
+
[source,powershell]
143
+
----
144
+
$env:NEO4J_HOME = "C:\Neo4j"
145
+
----
146
+
. Import the Neo4j PowerShell module by running the following command:
@@ -176,83 +159,96 @@ This adds the module to the current session.
176
159
Invoke-Neo4j console
177
160
----
178
161
162
+
[TIP]
163
+
====
179
164
To stop the server, use `Ctrl-C` in the console window, created by the command.
165
+
====
180
166
181
167
182
168
[[powershell-help]]
183
-
=== Inspect the module
184
-
185
-
You can get all available commands in the module by running the following command:
169
+
==== Inspect the module
186
170
171
+
. Get all available commands in the module by running the following command:
172
+
+
187
173
[source,powershell]
188
174
----
189
175
Get-Command -Module Neo4j-Management
190
176
----
191
-
177
+
+
192
178
The output should be similar to the following:
193
-
179
+
+
194
180
[source, shell, subs="attributes"]
195
181
----
196
-
CommandType Name Version Source
197
-
----------- ---- ------- ------
198
-
Function Invoke-Neo4j {neo4j-version-exact} Neo4j-Management
199
-
Function Invoke-Neo4jAdmin {neo4j-version-exact} Neo4j-Management
200
-
Function Invoke-Neo4jBackup {neo4j-version-exact} Neo4j-Management
201
-
Function Invoke-Neo4jImport {neo4j-version-exact} Neo4j-Management
202
-
Function Invoke-Neo4jShell {neo4j-version-exact} Neo4j-Management
182
+
CommandType Name Version Source
183
+
----------- ---- ------- ------
184
+
Function Get-Args 3.0.0 Neo4j-Management
185
+
Function Invoke-Neo4j 3.0.0 Neo4j-Management
186
+
Function Invoke-Neo4jAdmin 3.0.0 Neo4j-Management
203
187
----
204
188
205
-
The module also supports the standard PowerShell help commands
206
-
189
+
. See what each command does by running the following command, replacing `<command-name>` with the name of the command you want to inspect, for example, `Invoke-Neo4j`:
190
+
+
207
191
[source,powershell]
208
192
----
209
-
Get-Help Invoke-Neo4j
193
+
Get-Help <command-name>
210
194
----
211
195
212
-
Run the following to see examples of help commands:
213
-
196
+
. Run the following to see some usage examples of that command:
197
+
+
214
198
[source,powershell]
215
199
----
216
-
Get-Help Invoke-Neo4j -examples
200
+
Get-Help <command-name> -examples
217
201
----
202
+
+
203
+
.Usage examples
204
+
[options="header", cols="3m,1a"]
205
+
|====
206
+
| Command
207
+
| Description
218
208
209
+
| Invoke-Neo4j
210
+
| Outputs the available commands.
219
211
220
-
[[powershell-examples]]
221
-
=== Example usage
212
+
| Invoke-Neo4j status
213
+
| Current status of the Neo4j service.
222
214
223
-
* List of available commands:
224
-
+
225
-
[source,powershell]
226
-
----
227
-
Invoke-Neo4j
228
-
----
215
+
| Invoke-Neo4j windows-service
216
+
| Install the service.
229
217
230
-
* Current status of the Neo4j service:
231
-
+
232
-
[source,powershell]
233
-
----
234
-
Invoke-Neo4j status
235
-
----
218
+
| Invoke-Neo4jAdmin
219
+
| Available commands for administrative tasks.
220
+
|====
236
221
237
-
* Install the service with verbose output:
238
-
+
239
-
[source,powershell]
240
-
----
241
-
Invoke-Neo4j windows-service -Verbose
242
-
----
222
+
[TIP]
223
+
====
224
+
The module commands support the common PowerShell parameter of `Verbose`.
225
+
You can add `-Verbose` to any command to get more detailed output.
226
+
====
243
227
244
-
* Available commands for administrative tasks:
245
-
+
246
-
[source,powershell]
247
-
----
248
-
Invoke-Neo4jAdmin
249
-
----
228
+
== Access Neo4j
229
+
230
+
By default, Neo4j Community Edition does not include graph tools such as visualization, data exploration, and monitoring.
231
+
However, you can use the Neo4j Aura console to access these features for free.
232
+
No subscription is required.
250
233
234
+
. Sign up or log in to the link:https://console-preview.neo4j.io/self-managed[Aura Console].
235
+
. On the *Instances* page, click the *Self-managed* tab and then *+ Add deployment* button.
236
+
. Select *URL Connection*.
237
+
. Provide a *Name* and *Connection URL*.
238
+
If you have installed Neo4j locally on your system, you can connect to _\http://localhost:7474_.
239
+
. Click the *Connect* dropdown to launch various graph tools such as *Query*, *Explore*, and *Dashboards*.
240
+
. Type the username `neo4j` and your password or the default password `neo4j`.
241
+
You will be prompted to change the latter upon first login.
You are now connected and can use the Aura Console to run Cypher queries, visualize graphs, and optionally monitor your local Neo4j database in Neo4j Aura.
246
+
For details, see link:https://neo4j.com/docs/getting-started/#_work_with_data[Get started with Neo4j].
254
247
255
-
The module commands support the common PowerShell parameter of `Verbose`.
248
+
Alternatively, you can use the Neo4j Browser, a web-based user interface for interacting with Neo4j that is included with the Neo4j installation.
249
+
To access the Neo4j Browser, open a web browser and navigate to _\http://localhost:7474_.
250
+
Connect using the username `neo4j` with your password or the default password `neo4j`.
251
+
If the default password is used, you will be prompted to change it upon first login.
256
252
257
253
== Uninstall Neo4j
258
254
@@ -264,7 +260,7 @@ Here are the steps to uninstall Neo4j on Windows:
0 commit comments