Installation and deployment of DotAsterisk (dotted PBX) call center system on Alibaba Cloud ECS server

Recently, there is a voice call service that needs to deploy DotAsterisk (dotted PBX) on the Alibaba Cloud ECS cloud host. It was just during this time that Alibaba Cloud was doing activities, and the ECS machine purchase discount was very large. New users only need 699 yuan. To purchase a cloud host with 2CPU 4G memory and use for 3 years, the official event link is as follows:

https://promotion.aliyun.com/ntms/act/vm/aliyun-group/buy.html?group=LPBxaxPdCr

Because it is cheap, I did not hesitate to follow the trend and bought an ECS. The following will introduce how to deploy the Dianxing PBX call system on the Alibaba Cloud ECS cloud host .

 

1. Preparations

1. Download Dianxing PBX call system, the official download address is:

The latest version of DotAsterisk (PBX) 2.2:

http://www.dotasterisk.cn/thread-31-1-1.html

After downloading the ISO, upload it to the Alibaba Cloud server and extract all the RPM software packages from it. It will be explained below.

 

2. After the deployment of the Dianxing PBX call system is completed, the default ssh port of the system will be modified to 24432. After the installation and deployment are completed, the ssh client cannot connect to the remote ECS server. I have also stepped on this pit here, so I mentioned it before installation and deployment, so as not to repeat the mistakes of others. It is recommended to make preparations for opening ports in the Alibaba Cloud console before deployment. Add 24432 port data packet permission rules in the [Security Group Configuration] of the Alibaba Cloud console. The so-called Alibaba Cloud [Security Group Configuration] is equivalent to the system firewall. As shown below:

3. Check whether the ECS host system environment is compatible with Dianxing PBX

Since Dianxing PBX call system only supports Linux CentOS6 x86_64 system platform installation, the installer must first check whether the operating system of the purchased Alibaba Cloud host is " 64-bit CentOS 6 Linux distribution ", if not, please be sure After reinstalling the 64-bit CentOS6 system on the Alibaba Cloud ECS console, proceed with subsequent operations. The following is my ECS system:

 To check whether the operating system is Linux CentOS 6, and it must be a 64-bit system, the command is as follows:
3.1) Login:
Last login: Wed Sep 5 09:29:20 2018 from 61.183.151.86

Welcome to Alibaba Cloud Elastic Compute Service!

[Root@ centos6_64 ~]#
3.2) View the release version of the pre-installed Alibaba  Cloud system:
[root@centos6_64 ~]#  cat /etc/issue
CentOS release 6.8 (Final)
Kernel \r on an \m

3.3) View the pre-installed Alibaba Cloud system Whether the number of bits of the kernel and operating system is 64 bits:
[root@centos6_64 ~]# 
[root@centos6_64 ~]#  uname -a
Linux centos6_64 2.6.32-696.6.3.el6.x86_64 #1 SMP Wed Jul 12 14:17 :22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@centos6_64 ~]# 
[root@centos6_64 ~]#  getconf LONG_BIT
64
[root@centos6_64 ~]#

As can be seen from the above command, my ECS server is compatible with the installation of the DotAsterisk system.

 

2. Start the installation

I extracted basically all the RPM installation packages from the ISO image of Dianxing PBX and placed them in my own RPMS/ directory. It is also possible to use the complete installation package inside. The RPM package of Dianxing PBX is in Packages/ of the ISO. table of Contents. Then a simple shell installation script was written, and the installation was done with one command, as shown in the following figure:

2.1) Upload the rpm package and shell script I extracted, and unzip this file: da-aliyun-rpm.tgz
[root@centos6_64 ~]#  cd /
[root@centos6_64 /]#  ls
bin boot   da-aliyun -rpm.tgz   dev etc home lib lib64 lost+found media mnt opt ​​proc root run sbin selinux srv sys tmp usr var
[root@centos6_64 /]# 
[root@centos6_64 /]#  tar zxf da-aliyun-rpm.tgz 
[root @centos6_64 /]#  cd da-aliyun-rpm
[root@centos6_64 da-aliyun-rpm]# ls
da-install.sh RPMS
[root@centos6_64 da-aliyun-rpm]# 
[root@centos6_64 da-aliyun-rpm] #  ll -F
total 52
-rwxr-xr-x 1 root root 5226 Sep 5 10:11 da-install.sh*
drw-r--r-- 2 root root 45056 Sep 5 09:53 RPMS/
[root@centos6_64 da-aliyun-rpm]# 


3)执行安装脚本
[root@centos6_64 da-aliyun-rpm]# ./da-install.sh 
Are You Sure To Install?(yes/no)yes
-----  Begin Install!  -----
error: package httpd is not installed
error: package httpd-devel is not installed
rpm: no packages given for erase
rpm: no packages given for erase
error: package nginx is not installed
error: package memcached is not installed
Preparing...                ########################################### [100%]
   1:libgcc                 ########################################### [  0%]
   2:setup                  warning: /etc/gshadow created as /etc/gshadow.rpmnew
warning: /etc/motd created as /etc/motd.rpmnew
warning: /etc/passwd created as /etc/passwd.rpmnew
########################################### [  0%]
warning: /etc/shadow created as /etc/shadow.rpmnew
   3:filesystem             ########################################### [  0%]
   4:basesystem             ########################################### [  1%]
   5:ncurses-base           ########################################### [  1%]
   6:dhcp-common            ########################################### [  1%]
   7:centos-release         warning: /etc/yum.repos.d/CentOS-Base.repo saved as /etc/yum.repos.d/CentOS-Base.repo.rpmsave
########################################### [  1%]
   8:tzdata                 ########################################### [  1%]
   9:glibc-common           ########################################### [  1%]
  10:nss-softokn-freebl     ########################################### [  1%]

......(abridgement)

2.2) The script content of da-install.sh

[root @ dotasterisk: / da-aliyun-rpm] # cat da-install.sh
#! / bin / bash


read -p "Are You Sure To Install?(yes/no)"  isSure
if [ "$isSure" == "yes"  -o "$isSure" == "Yes"  -o "$isSure" == "y"   -o "$isSure" == "Y" ];then
        echo '-----  Begin Install!  -----'
else
        echo '-----  Cancel Install, Exit!  -----'
        exit
fi


#----------clear: Uninstall the software that comes with the ECS cloud host
rpm -e httpd --nodeps
rpm -e httpd-devel --nodeps

rpm -qa|grep -i php |xargs rpm -e --nodeps
rpm -qa|grep -i mysql |xargs rpm -e --nodeps
rm -rf /var/lib/mysql   /etc/my.cnf*

rpm -e  nginx  --nodeps
rpm -e  memcached  --nodeps
#----------clear-----end

 

cd  RPMS/
rpm -ivh *.rpm --nodeps --force --nomd5 --nofiledigest --nodigest --nosignature


#---------------------post
/sbin/chkconfig memcached on
/sbin/chkconfig mysqld on
/sbin/chkconfig asterisk on
/sbin/chkconfig nginx on
/sbin/chkconfig php-fpm on
/sbin/chkconfig rpcbind on
/sbin/chkconfig rpcidmapd on

/sbin/chkconfig redis off
/sbin/chkconfig keepalived off
/sbin/chkconfig smb off
/sbin/chkconfig openvpn off
/sbin/chkconfig ip6tables off
/sbin/chkconfig iptables off
/sbin/chkconfig iscsid off
/sbin/chkconfig iscsi off
/sbin/chkconfig mdmonitor off
/sbin/chkconfig messagebus off
/sbin/chkconfig postfix off
#/sbin/chkconfig rpcbind off
/sbin/chkconfig rpcgssd off
/sbin/chkconfig portreserve off
/sbin/chkconfig gpm off
/sbin/chkconfig fail2ban off
/sbin/chkconfig xinetd off

......

reboot


After the installation is complete, the system may need to be optimized, such as mysql configuration, number of open files in the system, etc.

3. Test after installation

Visit address: http://101.200.58.137
Login account/password: admin/admin

After testing a wave, except for the problem that ssh cannot log in to the server after the installation is completed and restarted, as mentioned above, we need to develop port 24432 in the security group. No problems have been found for the time being. So far, Alibaba Cloud has installed DotAsterisk (dotstar PBX) smoothly. carry out.

Since this machine is a test machine, other systems will need to be reinstalled in the follow-up, so interested friends can go up and test it. The screenshot after successful installation is as follows:

 

 

Guess you like

Origin blog.csdn.net/nullundefined/article/details/82417978