#> 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
注意事項:
elastix4-packages.lst,利用安裝ISO檔內的 ks.cfg 篩選出需要安裝的套件清單。
所有套件必須分兩次安裝,不然會安裝失敗。先安裝 elastix-*、freePBX 以外的套件。
elastix-admin-passwords 第一次啟動時必須執行一次這指令,設定 MySQL 與網頁管理的密碼。