移除 Asterisk 和 FreePBX
停止 asteriskasterisk -x "core stop now"
停止 apacheapachectl stop
停止 amportal
amportal stop
刪除 asterisk 帳號userdel asterisk
移除 asterisk 相關檔案rm -rf /etc/asterisk rm -rf /var/lib/asterisk rm -rf /var/log/asterisk rm -rf /var/run/asterisk rm -rf /var/spool/asterisk rm -rf /usr/include/asterisk rm -rf /usr/lib/asterisk rm /usr/sbin/asterisk rm /usr/include/asterisk.h rm /usr/share/apps/katepart/syntax/asterisk.xml rm /usr/share/vim/vim73/syntax/asterisk.vim rm /usr/share/vim/vim73/syntax/asteriskvm.vim rm /usr/lib/pkgconfig/asterisk.pc rm /usr/man/man8/asterisk.8 rm /var/spool/mail/asterisk rm /var/spool/cron/crontabs/asterisk
移除FreePbx 相關檔案rm -rf /var/www/html/* rm -rf /usr/local/sbin rm /etc/amportal.conf rm /etc/freepbx.conf
刪除 asterisk的資料庫及asterisk帳號mysql --user=root帳號 --password=root密碼 drop database asteriskcdrdb; drop database asterisk; DELETE FROM mysql.user WHERE User='asteriskuser'; exit;