SlideShare a Scribd company logo
1 of 12
Download to read offline
How To Install Openfire – CentOS 7
i | P a g e
Table of Contents
Overview.......................................................................................................................................................1
Applies To......................................................................................................................................................1
Pre-requisites................................................................................................................................................1
Java – Download and Install Java / JRE.........................................................................................................1
Java - Extract Java Bundle .........................................................................................................................2
Java – Environment Variables...................................................................................................................2
Set FQDN – Host........................................................................................................................................3
Restart Daemon ....................................................................................................................................3
Install MariaDB Server ..................................................................................................................................3
Install MariaDB Server – Download..........................................................................................................4
Install MariaDB Server – Installation Status..............................................................................................4
Install MariaDB Server – Package Listing..................................................................................................5
Install MariaDB Server – Start Daemon ....................................................................................................5
Install MariaDB Server – Enable Daemon.................................................................................................5
Install MariaDB Server – Status Daemon..................................................................................................6
Install MariaDB Server – Connect MySQL.................................................................................................6
Configuring – Hardening MySQL...........................................................................................................7
Openfire Server – Download.........................................................................................................................7
Openfire Server – Install ...........................................................................................................................8
Openfire – PAM Config .............................................................................................................................8
Openfire – Change Process User...............................................................................................................9
Install Package – libstdc++.i686 ................................................................................................................9
Openfire – Start Daemon........................................................................................................................10
Openfire Service – Service Status ...........................................................................................................10
Troubleshooting..........................................................................................................................................11
Openfire Service Failed – Issue...............................................................................................................11
Openfire Service – Real-time Service Log ...............................................................................................11
How To Install Openfire – CentOS 7
1 | P a g e
Overview
Openfire is an open source instant messaging chat server that runs on XMPP, which is a server that
facilitates XML based communication, such as chatting services.
Applies To
CentOS 7, RHEL 7
Pre-requisites
MySQL / MariaDB Database for User Information
Java JRE Java Runtime for Openfire
AD Info Active Directory Integration for User Authentication
wget Download Packages from Internet
Hostname Set hostname of the chat server, ideally FQDN
FQDN Fully qualified Domain Name (DNS record)
Java – Download and Install Java / JRE
Download and extract Java Package.
cd /usr/src
wget --no-cookies --no-check-certificate --header "Cookie:
gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie"
"http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz"
How To Install Openfire – CentOS 7
2 | P a g e
Java - Extract Java Bundle
Extract the downloaded java bundle and move to “opt” folder, run the below commands.
tar -xzf jdk-7u79-linux-x64.tar.gz
mv /usr/src/jdk1.7.0_79 /opt/
Java – Environment Variables
Set the environment variables, such as JAVA_HOME and bin directory of Java executables. Save the file
and logout and log back into the server.
vi ~/.bash_profile
JAVA_HOME=/opt/jdk1.7.0_79
PATH=/usr/bin/:$JAVA_HOME/bin
EXPORT PATH JAVA_HOME
How To Install Openfire – CentOS 7
3 | P a g e
Set FQDN – Host
Set the hostname of the server run the below command.
hostnamectl set-hostname chatsrvr.effonetech.com
Restart Daemon
To update the changes of the hostname set, restart the “systemd-hostnamed” daemon, run the below
command and reboot the server to make the changes permanent.
systemctl restart systemd-hostnamed
reboot
Install MariaDB Server
First step that we need to perform is to install MariaDB Server, which is inline replacement for MySQL
Server. To start the installation of the mariadb-server.
yum install mariadb-server mariadb
How To Install Openfire – CentOS 7
4 | P a g e
Install MariaDB Server – Download
After package dependency is resolved, accept the package download and installation.
Install MariaDB Server – Installation Status
After the package is downloaded, installation will be completed.
How To Install Openfire – CentOS 7
5 | P a g e
Install MariaDB Server – Package Listing
Run the rpm query package list; run the below command.
rpm -qa | grep maria
Install MariaDB Server – Start Daemon
Start the “mariadb” server daemon, run the below command.
systemctl start mariadb
Install MariaDB Server – Enable Daemon
After installation the init script “mariadb” will be copied to the /etc/init.d/ folder. To enable in it in specific
run levels run the below command, default in runlevel 345 it will turn on when you enable the service.
systemctl enable mariadb
How To Install Openfire – CentOS 7
6 | P a g e
Install MariaDB Server – Status Daemon
Check the status “mariadb” server daemon, run the below command, if the daemon is running “Active:
active (running)”.
systemctl status mariadb
Install MariaDB Server – Connect MySQL
Login to the server, run the command “mysql” . You will be connected to the server.
mysql
How To Install Openfire – CentOS 7
7 | P a g e
Configuring – Hardening MySQL
Additionally, to harden (secure) mariadb-server, run the below command and follow the instructions
while configuring. Run the below command.
mysql_secure_installation
Openfire Server – Download
Download and Openfire (Instant Messaging server).
wget http://download.igniterealtime.org/openfire/openfire_3_10_2.tar.gz
How To Install Openfire – CentOS 7
8 | P a g e
Openfire Server – Install
Install the Openfire instant messaging service run the command.
rpm -ivh openfire-3.10.2-1.i386.rpm
Openfire – PAM Config
After installation is successful, configure PAM for “openfire”; we will replicate “system-auth” policy for
openfire service. Run the copy command as below.
cp -Rp /etc/pam.d/system-auth /etc/pam.d/openfire
How To Install Openfire – CentOS 7
9 | P a g e
Openfire – Change Process User
Edit the file “openfire” in the directory “/etc/sysconfig” and uncomment, update the attribute
“OPENFIRE_USER” from “daemon” to “root”; then save and exit the editor
vi /etc/sysconfig/openfire
OPENFIRE_USER="root"
Install Package – libstdc++.i686
Install “libstdc++.i686” package and its dependencies. To install run the command the below command
yum install libstdc++.i686
How To Install Openfire – CentOS 7
10 | P a g e
Openfire – Start Daemon
After installation is successful, start the “openfire” daemon; to start run the command
systemctl start openfire
Openfire Service – Service Status
After starting the service; to know the current status of the service run the below command.
system status openfire
How To Install Openfire – CentOS 7
11 | P a g e
Troubleshooting
Openfire Service Failed – Issue
If you have not installed package “libstdc++.i686” you will be thrown an error as below.
Openfire Service – Real-time Service Log
To view real-time log for a specific service “openfire” run the below command.
journalctl -u openfire -f -a -n 0

More Related Content

What's hot

LogbackからLog4j 2への移行によるアプリケーションのスループット改善 ( JJUG CCC 2021 Fall )
LogbackからLog4j 2への移行によるアプリケーションのスループット改善 ( JJUG CCC 2021 Fall ) LogbackからLog4j 2への移行によるアプリケーションのスループット改善 ( JJUG CCC 2021 Fall )
LogbackからLog4j 2への移行によるアプリケーションのスループット改善 ( JJUG CCC 2021 Fall )
Hironobu Isoda
 
そんなトランザクションマネージャで大丈夫か?
そんなトランザクションマネージャで大丈夫か?そんなトランザクションマネージャで大丈夫か?
そんなトランザクションマネージャで大丈夫か?
takezoe
 
Always on 可用性グループ 構築時のポイント
Always on 可用性グループ 構築時のポイントAlways on 可用性グループ 構築時のポイント
Always on 可用性グループ 構築時のポイント
Masayuki Ozawa
 

What's hot (20)

KubeConRecap_nakamura.pdf
KubeConRecap_nakamura.pdfKubeConRecap_nakamura.pdf
KubeConRecap_nakamura.pdf
 
ゼロからはじめるKVM超入門
ゼロからはじめるKVM超入門ゼロからはじめるKVM超入門
ゼロからはじめるKVM超入門
 
Active Directory とシームレスにマルチに連携する多要素認証基盤の活用方法
Active Directory とシームレスにマルチに連携する多要素認証基盤の活用方法Active Directory とシームレスにマルチに連携する多要素認証基盤の活用方法
Active Directory とシームレスにマルチに連携する多要素認証基盤の活用方法
 
LogbackからLog4j 2への移行によるアプリケーションのスループット改善 ( JJUG CCC 2021 Fall )
LogbackからLog4j 2への移行によるアプリケーションのスループット改善 ( JJUG CCC 2021 Fall ) LogbackからLog4j 2への移行によるアプリケーションのスループット改善 ( JJUG CCC 2021 Fall )
LogbackからLog4j 2への移行によるアプリケーションのスループット改善 ( JJUG CCC 2021 Fall )
 
Oracle Cloud Infrastructure セキュリティの取り組み [2021年2月版]
Oracle Cloud Infrastructure セキュリティの取り組み [2021年2月版]Oracle Cloud Infrastructure セキュリティの取り組み [2021年2月版]
Oracle Cloud Infrastructure セキュリティの取り組み [2021年2月版]
 
Oracle Database Applianceのご紹介(詳細)
Oracle Database Applianceのご紹介(詳細)Oracle Database Applianceのご紹介(詳細)
Oracle Database Applianceのご紹介(詳細)
 
Ansible 2.8 アップデート情報 -機能追加と注意点-
Ansible 2.8 アップデート情報 -機能追加と注意点-Ansible 2.8 アップデート情報 -機能追加と注意点-
Ansible 2.8 アップデート情報 -機能追加と注意点-
 
Oracle Content and Experience サービス概要 (2021年2月版)
Oracle Content and Experience サービス概要 (2021年2月版)Oracle Content and Experience サービス概要 (2021年2月版)
Oracle Content and Experience サービス概要 (2021年2月版)
 
そんなトランザクションマネージャで大丈夫か?
そんなトランザクションマネージャで大丈夫か?そんなトランザクションマネージャで大丈夫か?
そんなトランザクションマネージャで大丈夫か?
 
自宅k8s/vSphere入門
自宅k8s/vSphere入門自宅k8s/vSphere入門
自宅k8s/vSphere入門
 
Docker Tokyo
Docker TokyoDocker Tokyo
Docker Tokyo
 
PostgreSQL13でのレプリケーション関連の改善について(第14回PostgreSQLアンカンファレンス@オンライン)
PostgreSQL13でのレプリケーション関連の改善について(第14回PostgreSQLアンカンファレンス@オンライン)PostgreSQL13でのレプリケーション関連の改善について(第14回PostgreSQLアンカンファレンス@オンライン)
PostgreSQL13でのレプリケーション関連の改善について(第14回PostgreSQLアンカンファレンス@オンライン)
 
並列クエリを実行するPostgreSQLのアーキテクチャ
並列クエリを実行するPostgreSQLのアーキテクチャ並列クエリを実行するPostgreSQLのアーキテクチャ
並列クエリを実行するPostgreSQLのアーキテクチャ
 
MesonでPostgreSQLをビルドしてみよう!(第39回PostgreSQLアンカンファレンス@オンライン 発表資料)
MesonでPostgreSQLをビルドしてみよう!(第39回PostgreSQLアンカンファレンス@オンライン 発表資料)MesonでPostgreSQLをビルドしてみよう!(第39回PostgreSQLアンカンファレンス@オンライン 発表資料)
MesonでPostgreSQLをビルドしてみよう!(第39回PostgreSQLアンカンファレンス@オンライン 発表資料)
 
Always on 可用性グループ 構築時のポイント
Always on 可用性グループ 構築時のポイントAlways on 可用性グループ 構築時のポイント
Always on 可用性グループ 構築時のポイント
 
その Pod 突然落ちても大丈夫ですか!?(OCHaCafe5 #5 実験!カオスエンジニアリング 発表資料)
その Pod 突然落ちても大丈夫ですか!?(OCHaCafe5 #5 実験!カオスエンジニアリング 発表資料)その Pod 突然落ちても大丈夫ですか!?(OCHaCafe5 #5 実験!カオスエンジニアリング 発表資料)
その Pod 突然落ちても大丈夫ですか!?(OCHaCafe5 #5 実験!カオスエンジニアリング 発表資料)
 
とある診断員とSQLインジェクション
とある診断員とSQLインジェクションとある診断員とSQLインジェクション
とある診断員とSQLインジェクション
 
S13 Oracle Database を Microsoft Azure 上で運用する為に~基本事項とベストプラクティス
S13 Oracle Database を Microsoft Azure 上で運用する為に~基本事項とベストプラクティスS13 Oracle Database を Microsoft Azure 上で運用する為に~基本事項とベストプラクティス
S13 Oracle Database を Microsoft Azure 上で運用する為に~基本事項とベストプラクティス
 
新機能によるデータベースシステムの改善ポイント
新機能によるデータベースシステムの改善ポイント新機能によるデータベースシステムの改善ポイント
新機能によるデータベースシステムの改善ポイント
 
Oracle GoldenGate入門
Oracle GoldenGate入門Oracle GoldenGate入門
Oracle GoldenGate入門
 

Viewers also liked (8)

How To Configure Nginx Load Balancer on CentOS 7
How To Configure Nginx Load Balancer on CentOS 7How To Configure Nginx Load Balancer on CentOS 7
How To Configure Nginx Load Balancer on CentOS 7
 
How To Configure SNMP Logging on RHEL 7
How To Configure SNMP Logging on RHEL 7How To Configure SNMP Logging on RHEL 7
How To Configure SNMP Logging on RHEL 7
 
How To Protect SSH Access with Fail2Ban on RHEL 7
How To Protect SSH Access with Fail2Ban on RHEL 7How To Protect SSH Access with Fail2Ban on RHEL 7
How To Protect SSH Access with Fail2Ban on RHEL 7
 
How To Install and Configure Salt Master on Ubuntu
How To Install and Configure Salt Master on UbuntuHow To Install and Configure Salt Master on Ubuntu
How To Install and Configure Salt Master on Ubuntu
 
Nginx bind() to 0.0.0.0:9080 failed
Nginx bind() to 0.0.0.0:9080 failedNginx bind() to 0.0.0.0:9080 failed
Nginx bind() to 0.0.0.0:9080 failed
 
How To Disable IE Enhanced Security Windows PowerShell
How To Disable IE Enhanced Security Windows PowerShellHow To Disable IE Enhanced Security Windows PowerShell
How To Disable IE Enhanced Security Windows PowerShell
 
How To Check IE Enhanced Security Is Enabled Windows PowerShell
How To Check IE Enhanced Security Is Enabled Windows PowerShellHow To Check IE Enhanced Security Is Enabled Windows PowerShell
How To Check IE Enhanced Security Is Enabled Windows PowerShell
 
How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7How To Install and Configure Screen on CentOS 7
How To Install and Configure Screen on CentOS 7
 

Similar to How To Install OpenFire in CentOS 7

Openobject install
Openobject installOpenobject install
Openobject install
Ali Mashduqi
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
maclean liu
 

Similar to How To Install OpenFire in CentOS 7 (20)

Install VMWare Tools CentOS 7
Install VMWare Tools CentOS 7Install VMWare Tools CentOS 7
Install VMWare Tools CentOS 7
 
How to Install MariaDB Server or MySQL Server on CentOS 7
How to Install MariaDB Server or MySQL Server on CentOS 7How to Install MariaDB Server or MySQL Server on CentOS 7
How to Install MariaDB Server or MySQL Server on CentOS 7
 
Openobject install
Openobject installOpenobject install
Openobject install
 
Installation d openerp
Installation d openerpInstallation d openerp
Installation d openerp
 
How to Upgrade Openfire on CentOS 7
How to Upgrade Openfire on CentOS 7How to Upgrade Openfire on CentOS 7
How to Upgrade Openfire on CentOS 7
 
Install and Configure WordPress in AWS on RHEL 7 or CentOS 7
Install and Configure WordPress in AWS on RHEL 7 or CentOS 7Install and Configure WordPress in AWS on RHEL 7 or CentOS 7
Install and Configure WordPress in AWS on RHEL 7 or CentOS 7
 
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in UbuntuHow To Install Openbravo ERP 2.50 MP43 in Ubuntu
How To Install Openbravo ERP 2.50 MP43 in Ubuntu
 
VMWare Tools Installation and Troubleshooting Guide
VMWare Tools Installation and Troubleshooting GuideVMWare Tools Installation and Troubleshooting Guide
VMWare Tools Installation and Troubleshooting Guide
 
How To Install and Configure Splunk on RHEL 7 in AWS
How To Install and Configure Splunk on RHEL 7 in AWSHow To Install and Configure Splunk on RHEL 7 in AWS
How To Install and Configure Splunk on RHEL 7 in AWS
 
RAC-Installing your First Cluster and Database
RAC-Installing your First Cluster and DatabaseRAC-Installing your First Cluster and Database
RAC-Installing your First Cluster and Database
 
Howto: Install openQRM 5.1 on Debian Wheezy
Howto: Install openQRM 5.1 on Debian WheezyHowto: Install openQRM 5.1 on Debian Wheezy
Howto: Install openQRM 5.1 on Debian Wheezy
 
Quick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage Service
Quick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage ServiceQuick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage Service
Quick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage Service
 
Oracle11g On Fedora14
Oracle11g On Fedora14Oracle11g On Fedora14
Oracle11g On Fedora14
 
Oracle11g on fedora14
Oracle11g on fedora14Oracle11g on fedora14
Oracle11g on fedora14
 
Installing & Configuring IBM Domino 9 on CentOS
Installing & Configuring IBM Domino 9 on CentOSInstalling & Configuring IBM Domino 9 on CentOS
Installing & Configuring IBM Domino 9 on CentOS
 
Java App On Digital Ocean: Deploying With Gitlab CI/CD
Java App On Digital Ocean: Deploying With Gitlab CI/CDJava App On Digital Ocean: Deploying With Gitlab CI/CD
Java App On Digital Ocean: Deploying With Gitlab CI/CD
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
 
Instalar PENTAHO 5 en CentOS 6
Instalar PENTAHO 5 en CentOS 6Instalar PENTAHO 5 en CentOS 6
Instalar PENTAHO 5 en CentOS 6
 
Sun raysetup
Sun raysetupSun raysetup
Sun raysetup
 
How To Install and Configure Log Rotation on RHEL 7 or CentOS 7
How To Install and Configure Log Rotation on RHEL 7 or CentOS 7How To Install and Configure Log Rotation on RHEL 7 or CentOS 7
How To Install and Configure Log Rotation on RHEL 7 or CentOS 7
 

More from VCP Muthukrishna

More from VCP Muthukrishna (20)

How to Fix Duplicate Packages in YUM on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7How to Fix Duplicate Packages in YUM on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7
 
How To Install and Configure GNome on CentOS 7
How To Install and Configure GNome on CentOS 7How To Install and Configure GNome on CentOS 7
How To Install and Configure GNome on CentOS 7
 
How To Connect to Active Directory User Validation
How To Connect to Active Directory User ValidationHow To Connect to Active Directory User Validation
How To Connect to Active Directory User Validation
 
How To Connect To Active Directory PowerShell
How To Connect To Active Directory PowerShellHow To Connect To Active Directory PowerShell
How To Connect To Active Directory PowerShell
 
How To List Files on Remote Server - PowerShell
How To List Files on Remote Server - PowerShellHow To List Files on Remote Server - PowerShell
How To List Files on Remote Server - PowerShell
 
How To List Files and Display In HTML Format
How To List Files and Display In HTML FormatHow To List Files and Display In HTML Format
How To List Files and Display In HTML Format
 
How To Check and Delete a File via PowerShell
How To Check and Delete a File via PowerShellHow To Check and Delete a File via PowerShell
How To Check and Delete a File via PowerShell
 
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
 
How To Setup SSH Keys on CentOS 7
How To Setup SSH Keys on CentOS 7How To Setup SSH Keys on CentOS 7
How To Setup SSH Keys on CentOS 7
 
How To Install and Configure Open SSH Server on Ubuntu
How To Install and Configure Open SSH Server on UbuntuHow To Install and Configure Open SSH Server on Ubuntu
How To Install and Configure Open SSH Server on Ubuntu
 
Windows PowerShell Basics - How To List PSDrive Info
Windows PowerShell Basics - How To List PSDrive InfoWindows PowerShell Basics - How To List PSDrive Info
Windows PowerShell Basics - How To List PSDrive Info
 
How To List Nginx Modules Installed / Complied on CentOS 7
How To List Nginx Modules Installed / Complied on CentOS 7How To List Nginx Modules Installed / Complied on CentOS 7
How To List Nginx Modules Installed / Complied on CentOS 7
 
Windows PowerShell Basics – How To Create powershell for loop
Windows PowerShell Basics – How To Create powershell for loopWindows PowerShell Basics – How To Create powershell for loop
Windows PowerShell Basics – How To Create powershell for loop
 
How To Construct IF and Else Conditional Statements
How To Construct IF and Else Conditional StatementsHow To Construct IF and Else Conditional Statements
How To Construct IF and Else Conditional Statements
 
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create PowerShell Function Mandatory Parameter and Optional ParameterHow To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
 
How To Create Power Shell Function Mandatory Parameter Value
How To Create Power Shell Function Mandatory Parameter ValueHow To Create Power Shell Function Mandatory Parameter Value
How To Create Power Shell Function Mandatory Parameter Value
 
How To Create PowerShell Function
How To Create PowerShell FunctionHow To Create PowerShell Function
How To Create PowerShell Function
 
How To Find Package Installation Date on RHEL 7
How To Find Package Installation Date on RHEL 7How To Find Package Installation Date on RHEL 7
How To Find Package Installation Date on RHEL 7
 
How To Reset root Password on CentOS 7
How To Reset root Password on CentOS 7How To Reset root Password on CentOS 7
How To Reset root Password on CentOS 7
 
How To View Current Execution Policy PowerShell
How To View Current Execution Policy PowerShellHow To View Current Execution Policy PowerShell
How To View Current Execution Policy PowerShell
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

How To Install OpenFire in CentOS 7

  • 1. How To Install Openfire – CentOS 7 i | P a g e Table of Contents Overview.......................................................................................................................................................1 Applies To......................................................................................................................................................1 Pre-requisites................................................................................................................................................1 Java – Download and Install Java / JRE.........................................................................................................1 Java - Extract Java Bundle .........................................................................................................................2 Java – Environment Variables...................................................................................................................2 Set FQDN – Host........................................................................................................................................3 Restart Daemon ....................................................................................................................................3 Install MariaDB Server ..................................................................................................................................3 Install MariaDB Server – Download..........................................................................................................4 Install MariaDB Server – Installation Status..............................................................................................4 Install MariaDB Server – Package Listing..................................................................................................5 Install MariaDB Server – Start Daemon ....................................................................................................5 Install MariaDB Server – Enable Daemon.................................................................................................5 Install MariaDB Server – Status Daemon..................................................................................................6 Install MariaDB Server – Connect MySQL.................................................................................................6 Configuring – Hardening MySQL...........................................................................................................7 Openfire Server – Download.........................................................................................................................7 Openfire Server – Install ...........................................................................................................................8 Openfire – PAM Config .............................................................................................................................8 Openfire – Change Process User...............................................................................................................9 Install Package – libstdc++.i686 ................................................................................................................9 Openfire – Start Daemon........................................................................................................................10 Openfire Service – Service Status ...........................................................................................................10 Troubleshooting..........................................................................................................................................11 Openfire Service Failed – Issue...............................................................................................................11 Openfire Service – Real-time Service Log ...............................................................................................11
  • 2. How To Install Openfire – CentOS 7 1 | P a g e Overview Openfire is an open source instant messaging chat server that runs on XMPP, which is a server that facilitates XML based communication, such as chatting services. Applies To CentOS 7, RHEL 7 Pre-requisites MySQL / MariaDB Database for User Information Java JRE Java Runtime for Openfire AD Info Active Directory Integration for User Authentication wget Download Packages from Internet Hostname Set hostname of the chat server, ideally FQDN FQDN Fully qualified Domain Name (DNS record) Java – Download and Install Java / JRE Download and extract Java Package. cd /usr/src wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz"
  • 3. How To Install Openfire – CentOS 7 2 | P a g e Java - Extract Java Bundle Extract the downloaded java bundle and move to “opt” folder, run the below commands. tar -xzf jdk-7u79-linux-x64.tar.gz mv /usr/src/jdk1.7.0_79 /opt/ Java – Environment Variables Set the environment variables, such as JAVA_HOME and bin directory of Java executables. Save the file and logout and log back into the server. vi ~/.bash_profile JAVA_HOME=/opt/jdk1.7.0_79 PATH=/usr/bin/:$JAVA_HOME/bin EXPORT PATH JAVA_HOME
  • 4. How To Install Openfire – CentOS 7 3 | P a g e Set FQDN – Host Set the hostname of the server run the below command. hostnamectl set-hostname chatsrvr.effonetech.com Restart Daemon To update the changes of the hostname set, restart the “systemd-hostnamed” daemon, run the below command and reboot the server to make the changes permanent. systemctl restart systemd-hostnamed reboot Install MariaDB Server First step that we need to perform is to install MariaDB Server, which is inline replacement for MySQL Server. To start the installation of the mariadb-server. yum install mariadb-server mariadb
  • 5. How To Install Openfire – CentOS 7 4 | P a g e Install MariaDB Server – Download After package dependency is resolved, accept the package download and installation. Install MariaDB Server – Installation Status After the package is downloaded, installation will be completed.
  • 6. How To Install Openfire – CentOS 7 5 | P a g e Install MariaDB Server – Package Listing Run the rpm query package list; run the below command. rpm -qa | grep maria Install MariaDB Server – Start Daemon Start the “mariadb” server daemon, run the below command. systemctl start mariadb Install MariaDB Server – Enable Daemon After installation the init script “mariadb” will be copied to the /etc/init.d/ folder. To enable in it in specific run levels run the below command, default in runlevel 345 it will turn on when you enable the service. systemctl enable mariadb
  • 7. How To Install Openfire – CentOS 7 6 | P a g e Install MariaDB Server – Status Daemon Check the status “mariadb” server daemon, run the below command, if the daemon is running “Active: active (running)”. systemctl status mariadb Install MariaDB Server – Connect MySQL Login to the server, run the command “mysql” . You will be connected to the server. mysql
  • 8. How To Install Openfire – CentOS 7 7 | P a g e Configuring – Hardening MySQL Additionally, to harden (secure) mariadb-server, run the below command and follow the instructions while configuring. Run the below command. mysql_secure_installation Openfire Server – Download Download and Openfire (Instant Messaging server). wget http://download.igniterealtime.org/openfire/openfire_3_10_2.tar.gz
  • 9. How To Install Openfire – CentOS 7 8 | P a g e Openfire Server – Install Install the Openfire instant messaging service run the command. rpm -ivh openfire-3.10.2-1.i386.rpm Openfire – PAM Config After installation is successful, configure PAM for “openfire”; we will replicate “system-auth” policy for openfire service. Run the copy command as below. cp -Rp /etc/pam.d/system-auth /etc/pam.d/openfire
  • 10. How To Install Openfire – CentOS 7 9 | P a g e Openfire – Change Process User Edit the file “openfire” in the directory “/etc/sysconfig” and uncomment, update the attribute “OPENFIRE_USER” from “daemon” to “root”; then save and exit the editor vi /etc/sysconfig/openfire OPENFIRE_USER="root" Install Package – libstdc++.i686 Install “libstdc++.i686” package and its dependencies. To install run the command the below command yum install libstdc++.i686
  • 11. How To Install Openfire – CentOS 7 10 | P a g e Openfire – Start Daemon After installation is successful, start the “openfire” daemon; to start run the command systemctl start openfire Openfire Service – Service Status After starting the service; to know the current status of the service run the below command. system status openfire
  • 12. How To Install Openfire – CentOS 7 11 | P a g e Troubleshooting Openfire Service Failed – Issue If you have not installed package “libstdc++.i686” you will be thrown an error as below. Openfire Service – Real-time Service Log To view real-time log for a specific service “openfire” run the below command. journalctl -u openfire -f -a -n 0