How to Install
Build from source or use the TAR distribution to install Apache Geode on every physical and virtual machine that will run Apache Geode.
Build from Source on Unix
-
Set the JAVA_HOME environment variable.
JAVA_HOME=/usr/java/jdk-8.0.121export JAVA_HOME -
Download the project source from the Releases page found at http://geode.apache.org, and unpack the source code.
-
Within the directory containing the unpacked source code, build without tests:
$ ./gradlew build -Dskip.tests=trueOr, build with the tests:
$ ./gradlew build -
Verify the installation by invoking
gfshto print version information and exit. On Linux/Unix platforms, the version will be similar to:$ cd geode-assembly/build/install/apache-geode$ bin/gfsh versionv1.1.0
Build from Source on Windows
-
Set the JAVA_HOME environment variable. For example:
$ set JAVA_HOME="C:\Program Files\Java\jdk-8.0.121" -
Install Gradle, version 2.3 or a more recent version.
-
Download the project source from the Releases page found at http://geode.apache.org, and unpack the source code.
-
Within the folder containing the unpacked source code, build without the tests:
$ gradle build -Dskip.tests=trueOr, build with the tests:
$ gradle build -
Verify the installation by invoking
gfshto print version information and exit.$ cd geode-assembly\build\install\apache-geode\bin$ gfsh.bat versionv1.1.0
Install Binaries from .tgz File
-
Download the .tgz file from the Releases page found at http://geode.apache.org.
-
Expand the .tgz file, where
path_to_productis an absolute path, and the file name will vary due to the version number:$ tar -zxvf apache-geode-1.1.0.tgz -C path_to_product -
Set the JAVA_HOME environment variable. On Linux/Unix platforms:
JAVA_HOME=/usr/java/jdk-8.0.121export JAVA_HOMEOn Windows platforms:
set JAVA_HOME="C:\Program Files\Java\jdk-8.0.121" -
Add the Geode scripts to your PATH environment variable. On Linux/Unix platforms:
PATH=$PATH:$JAVA_HOME/bin:path_to_product/binexport PATHOn Windows platforms:
set PATH=%PATH%;%JAVA_HOME%\bin;path_to_product\bin -
To verify the installation, type
gfsh versionat the command line and note that the output lists the installed version of Geode. For example:$ gfsh versionv1.1.0For more detailed version information such as the date of the build, build number and JDK version being used, invoke:
$ gfsh version --full