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/linux/rpm.adoc
+37-53Lines changed: 37 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ You can deploy Neo4j on Red Hat, CentOS, Fedora, or Amazon Linux distributions u
7
7
[[linux-rpm-prerequisites]]
8
8
== Java prerequisites
9
9
10
-
Neo4j {neo4j-version} requires the Java 17 runtime.
10
+
Neo4j 5.x runs on Java 17, and from Neo4j 5.14, it also supports Java 21.
11
11
12
12
13
13
=== OpenJDK Java 17
@@ -19,8 +19,8 @@ Consequently, no extra setup is required if you are using OpenJDK Java, the corr
19
19
=== Oracle Java 17
20
20
There is some minor setup required for compatibility with Oracle Java 17 because Oracle and OpenJDK provide incompatible RPM packages for Java 17.
21
21
22
-
We provide an adapter for Oracle Java 17 which must be installed before Neo4j.
23
-
The adapter contains no code, but will stop the package manager from installing OpenJDK 17 as a dependency despite an existing Oracle Java 17 installation.
22
+
You can use an adapter for Oracle Java 17, which must be installed before Neo4j.
23
+
The adapter contains no code but stops the package manager from installing OpenJDK 17 as a dependency despite an existing Oracle Java 17 installation.
24
24
25
25
. Download and install the Oracle Java 17 JDK from the https://www.oracle.com/technetwork/java/javase/downloads/index.html[Oracle website].
26
26
. Install the adapter:
@@ -34,8 +34,8 @@ The SHA-256 of the adapter package can be verified against https://dist.neo4j.or
34
34
35
35
=== Zulu JDK 17 or Corretto 17
36
36
37
-
If you wish to use a non-default JDK, it must be installed prior to starting the Neo4j installation.
38
-
Otherwise your package manager will install the default java distribution for your operating system, usually OpenJDK.
37
+
If you want to use a non-default JDK, it must be installed before starting the Neo4j installation.
38
+
Otherwise, your package manager will install the default Java distribution for your operating system, usually OpenJDK.
39
39
40
40
Installation instructions can be found on the manufacturer's website:
From Neo4j 5.4 onwards, you are required to accept either the commercial or the evaluation license agreement before running the Neo4j Enterprise Edition.
88
-
The following example uses an interactive prompt:
88
+
The following are examples of using an interactive prompt and a non-interactive installation:
89
89
+
90
+
.Interactive installation of Enterprise Edition under the commercial license
From Neo4j 5.4 onwards, you are required to accept either the commercial or the evaluation license agreement before running the Neo4j Enterprise Edition.
135
-
The following example uses an interactive prompt:
136
+
The following are examples of using an interactive prompt and a non-interactive installation:
136
137
+
138
+
.Interactive installation of Enterprise Edition under the commercial license
You have to choose either a link:https://neo4j.com/terms/licensing/[commercial license] or an link:https://neo4j.com/terms/enterprise_us/[evaluation license] before the interactive installation is allowed to complete.
144
+
+
142
145
For a non-interactive installation, you can set the `NEO4J_ACCEPT_LICENSE_AGREEMENT` to `yes` (for the commercial license) or `eval` (for the evaluation license) as in the following example:
143
146
+
147
+
.Non-interactive installation of Enterprise Edition under the commercial license
If you cannot reach `\https://yum.neo4j.com/stable/{neo4j-version}` to install Neo4j using RPM, perhaps due to a firewall, you will need to obtain Neo4j via an alternative machine that has the relevant access, and then move the RPM package manually.
156
+
If you cannot reach `\https://yum.neo4j.com/stable/{neo4j-version}` to install Neo4j using RPM, perhaps due to a firewall, you need to obtain Neo4j via an alternative machine that has the relevant access, and then move the RPM package manually.
153
157
154
158
[NOTE]
155
159
====
156
-
It is important to note that using this method will mean that the offline machine will not receive the dependencies that are normally downloaded and installed automatically when using `yum` for installing Neo4j; xref:tools/cypher-shell.adoc[Neo4j Cypher Shell] and Java.
157
-
158
-
For information on supported versions of Java, see xref:installation/requirements.adoc[System requirements].
160
+
It is important to note that using this method means that the offline machine cannot receive the dependencies that are normally downloaded and installed automatically when using `yum` for installing Neo4j, xref:tools/cypher-shell.adoc[Neo4j Cypher Shell], and Java.
159
161
====
160
162
161
-
162
-
[[linux-rpm-install-offline-install-download]]
163
-
=== Install Neo4j using the RPM installer
164
-
165
-
. Run the following to obtain the required Neo4j RPM package:
163
+
. Download the Neo4j and Cypher Shell RPM installers from https://neo4j.com/deployment-center/[Deployment Center] or run the following to obtain the required packages:
. Manually move the downloaded RPM packages to the offline machine.
180
185
Before installing Neo4j, you must manually install the required Java 17 packages.
181
186
+
@@ -184,13 +189,20 @@ Before installing Neo4j, you must manually install the required Java 17 packages
184
189
If using Oracle Java 17, the same dependency issues apply as with the xref:installation/linux/rpm.adoc#linux-rpm-prerequisites-oracle[Oracle Java prerequisites].
185
190
You will need to additionally download and install the Java adaptor described in that section.
186
191
====
187
-
. Install Neo4j as `root` using the following command depending on which edition you are using:
192
+
. Install Neo4j and Cypher Shell as `root` using the following command depending on which edition you are using:
193
+
+
194
+
[NOTE]
195
+
====
196
+
If you are upgrading from Neo4j 4.4 or earlier versions of 5.x, due to strict dependencies between Neo4j and Cypher Shell, both packages must be upgraded simultaneously.
197
+
This must be one single command, and Neo4j Cypher Shell must be the first package in the command.
198
+
For later versions, you can install them separately but still need to install Cypher Shell first.
You have to choose either a link:https://neo4j.com/terms/licensing/[commercial license] or an link:https://neo4j.com/terms/enterprise_us/[evaluation license] before the interactive installation is allowed to complete.
206
218
For a non-interactive installation, you can set the `NEO4J_ACCEPT_LICENSE_AGREEMENT` to `yes` (for the commercial license) or `eval` (for the evaluation license) as in the following example:
Before you begin, you will need to have Java 17 pre-installed and set to the default Java version.
229
-
If using Oracle Java 17, the same dependency issues apply as with the xref:installation/linux/rpm.adoc#linux-rpm-prerequisites-oracle[Oracle Java prerequisites].
230
-
231
-
Due to strict dependencies between Neo4j and Cypher Shell, both packages must be upgraded simultaneously.
232
-
Run the following on the offline machine as `root`, to install Neo4j Cypher Shell and Neo4j simultaneously:
0 commit comments