系統環境
- Cloud At Cost
- CentOS 7.0 (3.10.0-123.el7.x86_64)
- Elastix 4.0.74-Stable
安裝開始
#> wget --no-check-certificate https://sourceforge.net/projects/elastix/files/Elastix%20PBX%20Appliance%20Software/4.0.0/Elastix-4.0.74-Stable-x86_64-bin-10Feb2016.iso/download -O Elastix-4.0.74-Stable-x86_64-bin-10Feb2016.iso
#> mkdir /mnt/ISO
#> mount -o loop Elastix-4.0.74-Stable-x86_64-bin-10Feb2016.iso /mnt/ISO/
#> sed -i 's/SELINUX=.*$/SELINUX=disabled/' /etc/selinux/config
#> setenforce 0
#> vi /etc/yum.repos.d/Elastix-cd.repo
[elastix-cd]
name=Elastix RPM Repository for CentOS
baseurl=file:///mnt/ISO
gpgcheck=0
enabled=1
#> wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
#> rpm -ivh epel-release-latest-7.noarch.rpm
#> cd /mnt/ISO/Elastix
#> yum --nogpgcheck --disablerepo=\* --enablerepo=epel,elastix-cd localinstall kernel-3.10.0-229.14.1.el7.x86_64.rpm kernel-devel-3.10.0-229.14.1.el7.x86_64.rpm
#> reboot
#> mount -o loop Elastix-4.0.74-Stable-x86_64-bin-10Feb2016.iso /mnt/ISO/
#> sed -n '/%packages/,/%end/p' /mnt/ISO/ks/anaconda-ks.cfg | sed '/^%/d' > elastix4-packages.lst
#> yum -y --nogpgcheck --disablerepo=\* --enablerepo=epel,elastix-cd install $(cat elastix4-packages.lst | grep -v "^elastix\|RoundCubeMail\|freePBX\|lcdelastix\|wanpipe\|dahdi\|rhino" ) | tee yum-install-1st.log
#> yum -y --nogpgcheck --disablerepo=\* --enablerepo=epel,elastix-cd install $(cat elastix4-packages.lst | grep "^elastix\|RoundCubeMail\|freePBX\|lcdelastix" ) |
tee yum-install-2nd.log
#> systemctl enable mariadb
#> systemctl enable httpd
#> reboot
#> /usr/bin/elastix-admin-passwords --init
#> reboot