.. _systemd-rhel-centos-install: ===================================================== Install |cp| using Systemd on RHEL, CentOS, and Rocky ===================================================== This topic provides instructions for installing a production-ready |cp| configuration in a multi-node RHEL, CentOS, or Rocky Linux environment. The YUM repositories provide packages for RHEL, CentOS, Rocky Linux, and Fedora-based Linux distributions. .. include:: ../../includes/cp-cta.rst Prerequisites ============= .. include:: ../includes/cp-manual-prerequisites.rst .. note:: RHEL 7 support is deprecated in |cp| 7.x and will be removed in |cp| 8.x. Get the software ================ The YUM repositories provide packages for RHEL, CentOS, Rocky Linux, and Fedora-based distributions. You can install individual |cp| packages or the entire platform. For a list of available packages, see the :ref:`documentation ` or you can search the repository (``yum search ``). #. Install the ``curl`` and ``which`` tools. .. codewithvars:: bash sudo yum install curl which #. Install the |cp| public key. This key is used to sign packages in the YUM repository. .. codewithvars:: bash sudo rpm --import https://packages.confluent.io/rpm/|version|/archive.key #. On RHEL9 and |cp| version 7.4.x, you must set the cryptography policy to ``SHA1`` for each machine you are installing |cp| on. For newer versions of |cp|, this step is not required. For more information, see `SHA-1 deprecation on RHEL 9 `__. You can set the policy by running the following command: .. codewithvars:: bash update-crypto-policies --set DEFAULT:SHA1 #. Navigate to ``/etc/yum.repos.d/`` and create a file named ``confluent.repo`` with these contents. This adds the Confluent repositories. You must have the entries for both repositories, ``[Confluent]`` and ``[Confluent-Clients]``, as shown below. .. include:: ../includes/installing-cp.rst :start-after: rpm-clients-notices-start :end-before: rpm-clients-notices-stop .. codewithvars:: ini [Confluent] name=Confluent repository baseurl=https://packages.confluent.io/rpm/|version| gpgcheck=1 gpgkey=https://packages.confluent.io/rpm/|version|/archive.key enabled=1 [Confluent-Clients] name=Confluent Clients repository baseurl=https://packages.confluent.io/clients/rpm/centos/$releasever/$basearch gpgcheck=1 gpgkey=https://packages.confluent.io/clients/rpm/archive.key enabled=1 #. Clear the `YUM caches `_ and install |cp|. - |cp|: .. codewithvars:: bash sudo yum clean all && sudo yum install confluent-platform - |cp| with :ref:`RBAC `: .. codewithvars:: bash sudo yum clean all && \ sudo yum install confluent-platform && \ sudo yum install confluent-security - |cc-components|: .. codewithvars:: bash sudo yum clean all && sudo yum install confluent-community-|scala_version| .. include:: ../includes/installing-cp.rst :start-after: tip_for_installation :end-before: tip-for-available-packages-start .. include:: ../includes/configure-confluent-home.rst Calculate cluster size ====================== .. include:: ../../includes/sizing-calculator.rst Configure |cp| ============== .. include:: ../../includes/secret-tip.rst .. include:: ../includes/installing-cp.rst :start-after: config-options-start :end-before: config-options-end ---- |zk| ---- .. include:: ../../kafka-metadata/includes/zk-multi-node.rst .. kafka .. include:: ../../kafka/includes/multi-node.rst ---------- |c3-short| ---------- .. include:: ../includes/configuring-control-center.rst ------------ |crest-long| ------------ .. include:: ../includes/configuring-kafka-rest.rst ---- |sr| ---- .. include:: ../includes/configuring-schema-registry.rst Start |cp| ========== .. include:: ../includes/installing-systemd.rst Uninstall ========= Run this command to remove |cp|, where ```` is either :litwithvars:`confluent-platform` (|cp|) or :litwithvars:`confluent-community-|scala_version|` (|cc-components|). .. codewithvars:: bash sudo yum autoremove For example, run this command to remove |cp|: .. codewithvars:: bash sudo yum autoremove confluent-platform Related content =============== - :ref:`quickstart`. - :ref:`installing-systemd-unit` - :ref:`systemd-ubuntu-debian-install` - :ref:`prod-kafka-cli-install` - :ref:`cpdocker_intro`