Debian怎么安装FreeSwitch和mod_hiredis1.下载Debian2.安装Debian 10省略3.更改apt源4.安装FreeSwitch5.安装mod_hiredis模块6.安装后如何启动

这篇文章主要介绍“Debian怎么安装FreeSwitch和mod_hiredis”,在日常操作中,相信很多人在Debian怎么安装FreeSwitch和mod_hiredis问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”Debian怎么安装FreeSwitch和mod_hiredis”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

下载最新的Debian 10

使用Virtual Box一直下一步安装即可。如果需要查看freeswitch占用端口,

请先安装apt-get install net-tools

deb http://ftp.cn.debian.org/debian buster main
deb http://ftp.cn.debian.org/debian buster-updates main
deb http://ftp.cn.debian.org/debian-security/ buster/updates main
deb http://ftp.cn.debian.org/debian buster-backports main
apt-get update && apt-get install -yq gnupg2 wget lsb-release
wget -O - https://files.freeswitch.org/repo/deb/debian-release/fsstretch-archive-keyring.asc | apt-key add -
 
echo "deb http://files.freeswitch.org/repo/deb/debian-release/ `lsb_release -sc` main" > /etc/apt/sources.list.d/freeswitch.list
echo "deb-src http://files.freeswitch.org/repo/deb/debian-release/ `lsb_release -sc` main" >> /etc/apt/sources.list.d/freeswitch.list
 
apt-get update
  
# Install dependencies required for the build
apt-get build-dep freeswitch
  
# then let's get the source. Use the -b flag to get a specific branch
cd /usr/src/
git clone https://github.com/signalwire/freeswitch.git -bv1.10 freeswitch
cd freeswitch
  
# Because we're in a branch that will go through many rebases, it's
# better to set this one, or you'll get CONFLICTS when pulling (update).
git config pull.rebase true
  
# ... and do the build
./bootstrap.sh -j
./configure
make
make install

进入usr/src/freeswitch/src/mod/applications/mod_hireds目录

make

make install

即可

然后修改autoload_configs/modules.conf.xml by uncommenting the line:

<load module="mod_hiredis"/>
配置autoload_configs/hiredis.conf.xml文件如下

Configuration example:

<configuration name="hiredis.conf" description="mod_hiredis">
  <profiles>
    <profile name="default">
      <connections>
        <connection name="primary">
          <param name="hostname" value="172.18.101.101"/>
          <param name="password" value="redis"/>        
          <param name="port" value="6379"/>
          <param name="timeout_ms" value="500"/>
        </connection>
        <connection name="secondary">
          <param name="hostname" value="localhost"/>
          <param name="password" value="redis"/>        
          <param name="port" value="6380"/>
          <param name="timeout_ms" value="500"/>
        </connection>
      </connections>
      <params>
        <param name="ignore-connect-fail" value="true"/>
      </params>
    </profile>
  </profiles>
</configuration>
Connection parameters:

进入/usr/local/freeswitch/bin

目录,运行./freeswitch启动

配置文件在/usr/local/freeswitch/conf目录下

到此,关于“Debian怎么安装FreeSwitch和mod_hiredis”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注编程之家网站,小编会继续努力为大家带来更多实用的文章

相关文章

今天小编给大家分享一下excel图案样式如何设置的相关知识点,...
这篇文章主要讲解了“win10设置过的壁纸如何删除”,文中的讲...
这篇“Xmanager怎么显示远程linux程序的图像”文章的知识点大...
今天小编给大家分享一下xmanager怎么连接linux的相关知识点,...
这篇“如何重置Linux云服务器的远程密码”文章的知识点大部分...
本篇内容介绍了“Linux云服务器手动配置DNS的方法是什么”的...