安装升级了 FreeSWITCH 最新版本 1.6.12,把步骤记录一下以备后续查看。
- 查看系统版本 on Debian
$ uname -a
Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie
# on Debian
$ cat /etc/debian_version
8.6
# on CentOS
cat /etc/centos-release
CentOS release 6.6 (Final)
# 查看当前主机信息
# For systemd Debian version you may also use hostnamectl:
hostnamectl
apt-get update
apt-get install sox
apt-get install lsb-release
apt-get install ngrep
apt-get install subversion
apt-get install lrzsz
apt-get install python
apt-get install python-dev
apt-get install python-mysqldb
- 使用 apt-get 方式进行安装,通过这种方式安装,就是下载别人已编译打包好的代码,进行安装部署,减少自己编译需要解决很多依赖包的麻烦。
【注意】
- 如果 FS 官网挂了,这种安装方式也会受到影响,部分东西仍是需要到 FS 官网上进行下载的
- 通过 apt-get 方式安装的 FS 不包括 mod_shout 模块
https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie
https://freeswitch.org/confluence/display/FREESWITCH/Debian+Post-Install+Tasks
参考官方的安装文档 Installing from Debian packages
wget -O - https://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | apt-key add -
echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main"