win_binary.rst 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .. _installation_windows_bin:
  2. Windows binary
  3. ==============
  4. .. note:: For installing on Windows with an existing application server such as Tomcat, please see the :ref:`installation_war` section.
  5. The other way of installing GeoServer on Windows is to use the platform-independent binary. This version is a GeoServer web application bundled inside `Jetty <http://eclipse.org/jetty/>`_, a lightweight and portable application server. It has the advantages of working very similarly across all operating systems and is very simple to set up.
  6. Installation
  7. ------------
  8. #. Make sure you have a Java Runtime Environment (JRE) installed on your system. GeoServer requires a **Java 11** or **Java 17** environment, as provided by `Adoptium <https://adoptium.net>`__ Windows installers.
  9. .. note:: For more information about Java and GeoServer, please see the section on :ref:`production_java`.
  10. #. Navigate to the :website:`GeoServer Download page <download>`.
  11. #. Select the version of GeoServer that you wish to download. If you're not sure, select :website:`Stable <release/stable>` release.
  12. .. only:: snapshot
  13. These instructions are for GeoServer |version|-SNAPSHOT which is provided as a :website:`Nightly <release/main>` release.
  14. Testing a Nightly release is a great way to try out new features, and test community modules. Nightly releases
  15. change on an ongoing basis and are not suitable for a production environment.
  16. .. only:: not snapshot
  17. These instructions are for GeoServer |release|.
  18. #. Select :guilabel:`Platform Independent Binary` on the download page: :download_release:`bin`
  19. #. Download the archive and unpack to the directory where you would like the program to be located.
  20. .. note:: A suggested location would be :file:`C:\\Program Files\\GeoServer`.
  21. Setting environment variables
  22. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23. You will need to set the ``JAVA_HOME`` environment variable if it is not already set. This is the path to your JRE such that :file:`%JAVA_HOME%\\bin\\java.exe` exists.
  24. #. Navigate to :menuselection:`Control Panel --> System --> Advanced --> Environment Variables`.
  25. #. Under :guilabel:`System variables` click :guilabel:`New`.
  26. #. For :guilabel:`Variable name` enter ``JAVA_HOME``. For :guilabel:`Variable value` enter the path to your JDK/JRE.
  27. #. Click OK three times.
  28. .. note:: You may also want to set the ``GEOSERVER_HOME`` variable, which is the directory where GeoServer is installed, and the ``GEOSERVER_DATA_DIR`` variable, which is the location of the GeoServer data directory (which by default is :file:`%GEOSERVER_HOME\\data_dir`). The latter is mandatory if you wish to use a data directory other than the default location. The procedure for setting these variables is identical to setting the ``JAVA_HOME`` variable.
  29. Running
  30. -------
  31. .. note:: This can be done either via Windows Explorer or the command line.
  32. #. Navigate to the :file:`bin` directory inside the location where GeoServer is installed.
  33. #. Run :file:`startup.bat`. A command-line window will appear and persist. This window contains diagnostic and troubleshooting information. This window must be left open, otherwise GeoServer will shut down.
  34. #. Navigate to ``http://localhost:8080/geoserver`` (or wherever you installed GeoServer) to access the GeoServer :ref:`web_admin`.
  35. If you see the GeoServer Welcome page, then GeoServer is successfully installed.
  36. .. figure:: images/success.png
  37. GeoServer Welcome Page
  38. Stopping
  39. --------
  40. To shut down GeoServer, either close the persistent command-line window, or run the :file:`shutdown.bat` file inside the :file:`bin` directory.
  41. Uninstallation
  42. --------------
  43. #. Stop GeoServer (if it is running).
  44. #. Delete the directory where GeoServer is installed.