Skip to content

Instantly share code, notes, and snippets.

@jll90
Last active October 7, 2018 11:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jll90/1d52515aa24f2585572d4d164056cc42 to your computer and use it in GitHub Desktop.
Save jll90/1d52515aa24f2585572d4d164056cc42 to your computer and use it in GitHub Desktop.
Install ejabberd on centos7
#! bin bash
#This script installs a ejabberd on centos7
echo 'Updating packages...'
sudo yum update -y
echo 'Install wget'
sudo yum install wget -y
echo 'Download EPEL'
wget http://mirrors.nayatel.com/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
echo 'Install EPEL'
sudo rpm -Uvh epel-release-7*.rpm
echo 'Install Ejabberd'
sudo yum install -y http://files.lucidsolutions.co.nz/linux/centos/ejabberd-el7/ejabberd-14.07-6.el7.centos.x86_64.rpm
echo 'Start service'
sudo /bin/ejabberdctl start
echo 'Register Admin'
sudo /bin/ejabberdctl register admin localhost password
#make sure you give the user you just created privileges so you can see the whole control panel.
#acl:
# admin:
# user:
# - "admin": "localhost"
# append these lines to the end of your ejabberd.yml file and restart.
@alexghi
Copy link

alexghi commented Mar 3, 2017

release 7-6 is not hosted anymore;
you can use this instead http://mirrors.nayatel.com/epel/7/x86_64/e/epel-release-7-9.noarch.rpm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment