Official installation Address: Https://freeswitch.org/confluence/display/FREESWITCH/CentOS+6
Buy a cloud service from Ali Clouds, install the CentOS 64-bit system, and install the command:
Yum Install Lrzsz-y
1. Add RPM Source
RPM-IVH http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
or
RPM-IVH http://mirror.cedia.org.ec/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
2, the installation must be dependent on the package
yum install git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel E 2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel
3, Installation FreeSWITCH
cd/usr/src
git clone-b v1.4 https://freeswitch.org/stash/scm/fs/freeswitch.git cd/usr/src/freeswitch./bootstrap.sh-j If you want to add or remove modules, you can modify the modules.conf, add # to the front of each line to comment out the unwanted modules
If you do not need a custom module, you can skip this step./configure-cmake && make install 4. On UNIX class operating systems, the default installation location is/usr/local/freeswtich, and the paths described below are all relative to that path. Two commonly used commands are bin/freeswitch and bin/fs_cli, for ease of use, it is recommended to place these two commands in your search path, such as:
ln-sf/usr/local/freeswitch/bin/freeswitch/usr/local/bin/
Ln-sf/usr/local/freeswitch/bin/fs_cli/usr/local/bin/of course, if/usr/local/bin is not in your search path, you can change the above/usr/local/bin to/usr/bin /。 Alternatively, you can modify your PATH environment variable to include the path.
It should be ready to start, and you can launch it to the foreground by executing the FreeSWITCH command in the terminal (if you've already done a symbolic link, or you want to do/usr/local/freeswitch/bin/freeswitch). There will be a lot of log output during startup, and there will be some errors and warnings on the first boot. When the boot is complete, it enters the system console (hereinafter called Fs-con). and displays a similar prompt "[email protected]>" (The following is simply "fs>"). You can turn off FreeSWITCH by entering the shutdown command in Fs-con. If you want to boot FreeSWITCH into the background (daemon, service mode), you can use FREESWITCH-NC (No console). Background mode does not have a console, if you want to control FreeSWITCH, you can use the client software FS_CLI connection. Note that you need to use the FSCTL Shutdown command to turn off FreeSWITCH in Fs_cli. Of course, you can also turn it off directly from the Linux prompt via the freeswitch-stop command. If you do not want to exit the FreeSWITCH service and only exit the FS_CLI client, you will need to enter/exit, or CTRL + D, or close the terminal window directly. Cut out ... Same as the/exit effect.
If you want to boot FreeSWITCH into the background (daemon, service mode), you can use FREESWITCH-NC (No console). Background mode does not have a console, if you want to control FreeSWITCH, you can use the client software FS_CLI connection. Note that you need to use the FSCTL Shutdown command to turn off FreeSWITCH in Fs_cli. Of course, you can also turn it off directly from the Linux prompt via the freeswitch-stop command. If you do not want to exit the FreeSWITCH service and only exit the FS_CLI client, you will need to enter/exit, or CTRL + D, or close the terminal window directly. According to the official documentation, do this to complete the installation, but I use the 1.6 version, that is, the first of the GIT address, but according to some online statements, resolved a part of the error, or errors, so according to another article (http:// NIYIRANGRUJIU.BLOG.163.COM/BLOG/STATIC/9817337201581584910990/) said, others are unable to complete the installation, so I also changed the 1.4 version of the installation succeeded in part of the wrong solution:
FreeSWITCH Installation Error "must install Libyuv-dev to build MOD_FSV" solution:
http://blog.csdn.net/gsying1474 /article/details/48900195
CentOS6.5 Installing FreeSWITCH and activating