Skip to content

Instantly share code, notes, and snippets.

@smahi
Forked from jll90/install-ejabberd.sh
Created July 29, 2016 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smahi/4766269e3296965d93a71ba9a086bdf3 to your computer and use it in GitHub Desktop.
Save smahi/4766269e3296965d93a71ba9a086bdf3 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment