Table of Contents
This tip is about the how to Run Apache Kafka on AlmaLinux and Rocky Linux 8. So read this free guide, How to Run Apache Kafka on AlmaLinux and Rocky Linux 8 step by step. If you have query related to same article you may contact us.
How to Run Apache Kafka on AlmaLinux and Rocky Linux 8 – Guide
Apache Kafka is a famous broadcast message broker designed to handle large volumes of continuous information. A Kafka group is deeply scalable and open-minded.
Likewise, it has a much higher throughput compared to other message brokers like ActiveMQ and RabbitMQ.
However it is widely used as an information distribution/purchase system, many organizations also use it for log aggregation as it provides permanent storage for distributed messages.
Around here at LinuxAPT, as a component of our Server Management Services, we routinely assist our Clients in performing Apache-related queries.
How to install and configure Apache on Almalinux 8 / Rocky Linux 8
Let’s look at the steps needed to download, install, and run Apache on AlmaLinux 8 / Rocky Linux 8. If you’ve performed similar installations on CentOS 8 or Oracle Linux 8, you’ll find the related steps. Both Rocky Linux / AlmaLinux 8 Linux distributions aim to replace the collapse of CentOS 8 whose direction has been taken.
prerequisites
Recommended OS: Rocky Linux 8. +.
User account: A user account with sudo or root access.
Update operating system
Update your Rocky Linux operating system to ensure all existing packages are up To date:
refresh sudo dnf –refresh -y
O tutorial will use the sudo command and assume you have the sudo state.
To check the status of sudo on your account:
sudo whoami
Example output showing sudo status:
[joshua@rockylinux ~]$ sudo whoamiroot
Per up a new or existing sudo account, visit our tutorial about How to add a user to Sudoers on Rocky Linux.
To use the root account, use the following command with the root password to login.
it is
Install Apache (HTTPD)
Apache, by default, is in the Rocky Linux application stream. This is more practical for most users as it is very stable and secure. To install Apache, open your terminal and run the following command:
sudo dnf install httpd
Type “Y”, then press “ENTER KEY” to continue.
Then Apache (HTTPD) is disabled and not enabled by default. First, start the service.
sudo systemctl enable httpd –now
Example output if successful:
Symbolic link created /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
Check that HTTPD is working correctly with the following systemctl command:
systemctl httpd status
Configure firewall rules
It does not automatically add firewall rules to default ports 80 or 443 when installing Apache. Before proceeding you should set the following rules, it will depend on the ports you use, but all options are listed.
Open port 80 or HTTP:
sudo firewall-cmd –permanent –zone = public –add-service = http
Open port 443 or HTTPS:
sudo firewall-cmd –permanent –zone = public –add-service = https
Reload the firewall for the changes to take effect
sudo firewall-cmd –reload
Alternatively, it is ideal to set SELinux permissions globally for your Apache server.
sudo setsebool -P httpd_unified 1
The command will update the SELinux Boolean values and the -P flag to update the boot time value, making the change persistent across system reboots. In general, httpd_unified is the boolean value that will tell SELinux to treat all Apache processes (HTTPD) as the same type.
Check the Apache web server (HTTPD)
Now that you’ve installed and configured it, it’s time to test to see if the HTTPD service is accessible and working correctly by requesting a page.
You can access standard Apache home page to verify that the software works correctly through your server’s IP address. To find out, if you don’t know, use the following command below:
hostname -I
You should retrieve the server’s internal IP address as an example:
### EXAMPLE ONLY ### 192.168.50.15
You can get 2 to 3 results. Try each one until you find the correct IP address.
If you need your public (external) IP address, use the following command:
curl -4 icanhazip.com
It may be necessary to install the CURL package if it is missing. To do this, run the following command:
sudo dnf install curl -y
Once you have your server’s IP address, open your favorite web browser and type the following:
http: // ip_your_server
Final note
I hope you like the guide How to Run Apache Kafka on AlmaLinux and Rocky Linux 8. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.