-
-
Save smahi/4766269e3296965d93a71ba9a086bdf3 to your computer and use it in GitHub Desktop.
Install ejabberd on centos7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! 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