How To Install Openfire XMPP Server On CentOS 8 / 7

We can install and download the Openfire server on CentOS as well as Linux. You just need to download the package from the official website. Let’s see, how to install Openfire server in Linux.

Check Out: How To Install Opera Mini Browser On Ubuntu and CentOS 8

How To Install Openfire XMPP Server On CentOS 8

1. We will update the system and install the packages if you don’t have it. Use the below command. you will also need to install the java 8 on the CentOS.

sudo yum update
sudo yum install curl wget
yum install java-1.8* -y

2. You need to download the Openfire package using the below command for Linux or you can manually download it from here

wget https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire-4.5.2-1.noarch.rpm -O openfire.rpm

Once the package is downloaded, we need to install it with the below command.

[root@openfire ~]# rpm -ivh openfire.rpm 
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:openfire-4.5.2-1 ################################# [100%]
Restarting openfire (via systemctl): [ OK ]

Check Out: How To Configure Free SSL Certificate Using Certbot On Ubuntu

3. Start and enable the Openfire service. 

[root@openfire ~]# systemctl start openfire
[root@openfire ~]# systemctl enable openfire
openfire.service is not a native service, redirecting to systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable openfire

You also need to open the firewall ports using the following command. 

firewall-cmd --permanent --add-port=9090/tcp
firewall-cmd --permanent --add-port=9091/tcp
firewall-cmd --permanent --add-port=9091/udp
firewall-cmd --permanent --add-port=9090/udp

Check the Openfire Service.

[root@openfire ~]# systemctl status openfire
● openfire.service - SYSV: Openfire is an XMPP server, which is a server that facilitates XML bas>
Loaded: loaded (/etc/rc.d/init.d/openfire; generated)
Active: active (running) since Sat 2020-08-15 13:43:26 EDT; 3min 48s ago
Docs: man:systemd-sysv-generator(8)
Main PID: 2859 (java)
Tasks: 0 (limit: 4891)
Memory: 5.2M
CGroup: /system.slice/openfire.service
‣ 2859 /etc/alternatives/jre/bin/java -Dlog4j.configurationFile=/opt/openfire/lib/log4>

4. Now we will access the Openfire using the URL IP:9090 or serverhostname:9090 in the browser. Select your “language” and click on “Continue“. 

 centos install openfire

Check Out: How To Mount Same Volume To Multiple Container In Docker

Give your “XMPP Domain Name” and “Server Hostname“. Keep the port as same and click on “Continue“. 

 openfire server

For testing purposes, I will choose the “Embedded database” and I’m not going to make a Database instance for this. if you need, you can create a separate database then choose “Standard database connection“. 

openfire install centos

You can choose any of these options available here but I will choose the “default”. It will store the user and groups in the server database. 

How To Install Openfire

Give a mail ID and set the administrator password. 

how to check openfire port in linux

Once you have click on “Continue” and you will get the “Login to the admin console” page. you need to click on it.

Once the Admin console page is opened. Login with your admin credentials.

Check Out: How To Enable Instant Articles To Monetize Your Contents

As you can see, you’re successfully installed the Openfire on CentOS 8. In a similar way, you can perform the same task on Redhat Linux. 

That’s it.

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment