热门标签 | HotTags
当前位置:  开发笔记 > 运维 > 正文

centos7freeswitch1.8.7一次性成功安装

一定要按照顺序和版本来安装,不然会各种奇奇怪怪的错误,有些git clone 无法下载,建议FQ下载好放到linux里面先看我的centos系统版本7+,freeswitch版本:

一定要按照顺序和版本来安装,不然会各种奇奇怪怪的错误,有些git clone 无法下载,建议FQ下载好放到linux里面

先看我的centos系统版本7+,freeswitch版本:1.8.7

[root@localhost bin]# uname -a
Linux localhost.localdomain
3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

 [root@localhost bin]# cat /etc/redhat-release
 CentOS Linux release 7.9.2009 (Core)

freeswitch 版本

[root@localhost bin]# ./freeswitch -version
FreeSWITCH version:
1.8.7~64bit ( 64bit)# 更新rpm (这里可选,反正我没更新)yum -y update

#fs仓库,这里选择网络
#可选,不选更好 #yum install -y http://files.freeswitch.org/freeswitch-release-1-6.noarch.rpm epel-release #安装fs所需依赖 yum install -y git alsa-lib-devel autoconf automake bison broadvoice-devel bzip2 curl-devel libdb4-devel e2fsprogs-devel erlang flite-devel g722_1-devel gcc-c++ gdbm-devel gnutls-devel ilbc2-devel ldns-devel libcodec2-devel libcurl-devel libedit-devel libidn-devel libjpeg-devel libmemcached-devel libogg-devel libsilk-devel libsndfile-devel libtheora-devel libtiff-devel libtool libuuid-devel libvorbis-devel libxml2-devel lua-devel lzo-devel mongo-c-driver-devel ncurses-devel net-snmp-devel openssl-devel opus-devel pcre-devel perl perl-ExtUtils-Embed pkgconfig portaudio-devel postgresql-devel python-devel python-devel soundtouch-devel speex-devel sqlite-devel unbound-devel unixODBC-devel wget which yasm zlib-devel libshout-devel libmpg123-devel lame-devel rpm-build libX11-devel libyuv-devel #安装cmake cd /usr/local/src wget https://cmake.org/files/v3.14/cmake-3.14.0.tar.gz tar vzxf cmake-3.14.0.tar.gz cd cmake-3.14.0 ./configure make make install # 安装libks cd /usr/local/src yum install libatomic git clone https://github.com/signalwire/libks.git cd libks cmake . make make install #安装signalwire-c cd /usr/local/src git clone https://github.com/signalwire/signalwire-c.git cd signalwire-c/ cmake . make make install ln -sf /usr/local/lib64/pkgconfig/signalwire_client.pc /usr/lib64/pkgconfig/signalwire_client.pc #freeswitch安装

cd /opt
wget https://github.com/signalwire/freeswitch/archive/refs/tags/v1.8.7.tar.gz
tar vzxf v1.8.7.tar.gz
.
/bootstrap.sh
.
/configure
make
make install
#语言包安装(可选择,反正我没用到)
make sounds
-install
make moh
-install
# 可选-设置软链接
ln
-sf /usr/local/freeswitch/bin/freeswitch /usr/bin/
ln
-sf /usr/local/freeswitch/bin/fs_cli /usr/bin/

最后启动

cd /usr/local/freeswitch/bin
.
/freeswitch
没有报错即可
2021-12-25 05:23:52.851463 [CONSOLE] switch_core.c:2478
.
=============================================================.
| _____ ______ _____ _____ ____ _ _ |
| | ___| __ ___ ___/ ___\ \ / /_ _|_ _/ ___| | | | |
| | |_ | '__/ _ \/ _ \___ \\ \ /\ / / | | | || | | |_| | |
| | _|| | | __/ __/___) |\ V V / | | | || |___| _ | |
| |_| |_| \___|\___|____/ \_/\_/ |___| |_| \____|_| |_| |
| |
.
=============================================================.
| Anthony Minessale II, Michael Jerris, Brian West, Others |
| FreeSWITCH (http://www.freeswitch.org) |
| Paypal Donations Appreciated: paypal@freeswitch.org |
| Brought to you by ClueCon http://www.cluecon.com/ |
.=============================================================.
.
===============================================================.
| _ |
| ___| |_ _ ___ ___ ___ _ __ ___ ___ _ __ ___ |
| / __| | | | |/ _ \/ __/ _ \| '_ \ / __/ _ \| '_ ` _ \ |
| | (__| | |_| | __/ (_| (_) | | | | _ | (_| (_) | | | | | | |
| \___|_|\__,_|\___|\___\___/|_| |_| (_) \___\___/|_| |_| |_| |
| |
.
===============================================================.
2021-12-25 05:23:52.851470 [INFO] switch_core.c:2487
FreeSWITCH Version
1.8.7~64bit ( 64bit)

 



推荐阅读
author-avatar
qq7654ijh_416
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有