Rocky Linux 9.2
===============

.. program:: jetstream server

.. note:: To install JetStream, you will need to either be logged in as ``root`` or be an administrative user using ``sudo``. The examples below use ``sudo``.

New Installation
----------------

To install JetStream on Rocky Linux, run the following:

.. code-block:: shell-session

  # sudo rpm -i go-jetstream-<version>.x86_64.rpm

Enable and start the service:

.. code-block:: shell-session

   # sudo systemctl enable jetstream-server
   # sudo systemctl start jetstream-server


Rocky Linux runs the :program:`firewalld` firewall by default, so you may also need to add a firewall exception, for instance:

.. code-block:: shell-session

   # sudo firewall-cmd --permanent --zone=public --add-port=8886/tcp --add-port=8886/udp
   # sudo systemctl restart firewalld

Your server should now be running.


Update Existing Installation
----------------------------

To update JetStream on Rocky Linux, run:

.. code-block:: shell-session

   # sudo rpm -U go-jetstream-<version>.x86_64.rpm
   # sudo systemctl daemon-reload
   # sudo systemctl restart jetstream-server


Next Steps
----------

Try connecting to the JetStream server and doing some transfers. We recommend downloading the `Client Application <https://gojetstream.io/downloads>`_. See :doc:`/getting_started/connecting` for tips on setting up a connection.

The Client Application may prompt you to :doc:`setup a license <jetstream-client:locations/location-configure-server>`. Server configuration tasks must be done by :doc:`administrator users </security/superuser>`, which includes all users in the **wheel** group by default.

.. note::
   Many configuration tasks can be done from the :doc:`Client Application <jetstream-client:locations/location-configure-server>`, even if the Client is being run on another machine. If you can't run a Client, or wish to script the installation process, there are :doc:`alternate ways to configuration the server </setup/configuration>`.
