CentOS 6 DEPRECATED
- Created by YEISON CAMARGO, last modified by John Boteler on 2016.02.02
About
This a FreeSWITCH installation manual tested in virtual machines with CentOS 6.5 32-bit and 64-bit operating systems.
FreeSWITCH 1.6 depends on many updated system libraries which are available in Debian 8, but can not be distributed for CentOS due to licensing restrictions or that require additional work to include in CentOS distributions. As of September 2015 the FS team can not recommend CentOS 6 for modern versions of FreeSWITCH™.
Build From Source
Automatic Makefile
The FreeSWITCH™ team has prepared a Makefile in the source tree that pulls down all dependencies and builds FreeSWITCH. It is available in the Stash repository at
https://stash.freeswitch.org/projects/FS/repos/freeswitch/browse/build/Makefile.centos6?raw
Simply copy the contents of the above link into 'Makefile', then run 'make' in the same directory, it will download FreeSWITCH latest (master) sources into a freeswitch.git subdir of the current dir (so, you may want to do this in /usr/src or /usr/local/src).
If you want to compile and install RELEASE branch, edit the above Makefile and add " -b v1.4 " just after the word "clone".
When finished, FreeSWITCH should be located under /usr/local/freeswitch
Now continue below at Set Owner and Permissions. If you find any errors please see the Corrections page.
Manual Build
Install libraries and pre-requisites
# Add the RPM repository ### OR a European repository# Install necessary componentsyum install git gcc-c++ autoconf automake libtool wget python ncurses-devel zlib-devel libjpeg-devel openssl-devel e2fsprogs-devel sqlite-devel libcurl-devel pcre-devel speex-devel ldns-devel libedit-devel |
Download FreeSWITCH™ source code, configure modules, compile, install
cd /usr/src# To build from Master, the latest source code: ##### OR ###### To build from the current release source code:git clone -b v1.4 https://freeswitch.org/stash/scm/fs/freeswitch.gitcd /usr/src/freeswitch # The -j argument spawns multiple threads to speed the build process ./bootstrap.sh -j# if you want to add or remove modules from the build, edit modules.confvi modules.conf# add a module by removing '#' comment character at the beginning of the line# remove a module by inserting the '#' comment character at the beginning of the line containing the name of the module to be skipped ./configure -C make && make install |
Install Sounds
Install sounds:
make cd-sounds-installmake cd-moh-install |
Installing higher quality sounds will automatically install lesser quality sounds.
If you only need 8KHz sounds, you can save time and bandwidth:
make sounds-installmake moh-install |
Set Owner and Permissions
# create user 'freeswitch'# add it to group 'daemon'# change owner and group of the freeswitch installationcd /usr/localuseradd --system --home-dir /usr/local/freeswitch -G daemon freeswitchpasswd -l freeswitchchown -R freeswitch:daemon /usr/local/freeswitch/ chmod -R 770 /usr/local/freeswitch/chmod -R 750 /usr/local/freeswitch/bin/*mkdir /var/run/freeswitchchown -R freeswitch:daemon /var/run/freeswitchln -s /usr/local/freeswitch/bin/freeswitch /usr/bin/ # needed by /etc/init.d/freeswitch |
Start FreeSWITCH
First Time
cd /usr/local/freeswitch/bin
./freeswitch
This will start FreeSWITCH™ and output many messages to the screen, allowing you to observe the startup sequence and any error messages. It is a Good Thing to do this at least once so that you can see the modules being loaded and understand how much information is available to you as you learn how to work with FreeSWITCH™. After all modules, users, and profiles have fully loaded you will see a prompt similar to
freeswitch@domain>
where domain is replaced by the domain name, machine name, or i.p. address on which FreeSWITCH™ is running. Refer to mod_commands to learn what commands are available. Start with
sofia status
Type 'help' to get a long listing of commands available. Refer to mod_commands for descriptions of the commands.
Automatic Start At Boot
To get FreeSWITCH to start up automatically at system start, just copy the FreeSWITCH init script into the /etc/init.d directory. An example init script is included in the git repository, under the build directory, named as freeswitch.init.redhat. You may need to modify the script to get FreeSWITCH starting up from the directory where the binaries are installed. After the file has been modified to suit your needs, simply run this command:
cp /usr/src/freeswitch/build/freeswitch.init.redhat /etc/init.d/freeswitchchmod 750 /etc/init.d/freeswitchchown freeswitch:daemon /etc/init.d/freeswitchchkconfig --add freeswitch && chkconfig --levels 35 freeswitch on |
This procedure will also work exactly the same way on Fedora systems.
CentOS 6 DEPRECATED的更多相关文章
- Hadoop之—— CentOS Warning: $HADOOP_HOME is deprecated解
转载请注明出处:http://blog.csdn.net/l1028386804/article/details/46389499 启动Hadoop时报了一个警告信息.我安装的Hadoop版本号是ha ...
- CentOS 7 安装MySQL 5.6遇到的疑难杂症小结
在一测试服务器(CentOS Linux release 7.2.1511)上安装MySQL 5.6(5.6.19 MySQL Community Server)时遇到下面错误,这个是因为CentOS ...
- CentOS 6.3下Samba服务器的安装与配置方法(图文详解)
这篇文章主要介绍了CentOS 6.3下Samba服务器的安装与配置方法(图文详解),需要的朋友可以参考下 一.简介 Samba是一个能让Linux系统应用Microsoft网络通讯协议的软件, ...
- 关于Docker官方CentOS镜像无法启动mysqld的总结
很多童鞋反映,在Docker官方CentOS镜像中安装了Mysql server后,无法正常启动. 无法正常启动表现为两种情况: 1> 初始完数据库后,mysqld启动报错 2> syst ...
- centos虚拟机复制移动后网络配置无效
移植Centos虚拟机后无法联网解决1.迁移以后,会存在其中一个网卡无法启动(eth0 or eth1) [root@ ~]# ifup eth0 WARNING: Deprecated config ...
- CentOS 6.3下Samba服务器的安装与配置
一.简介 Samba是一个能让Linux系统应用Microsoft网络通讯协议的软件,而SMB是Server Message Block的缩写,即为服务器消息块 ,SMB主要是作为Microsoft的 ...
- Centos 7 mysql Buffered warning: Changed limits: max_connections: 214 解决方法
Everytime I restart MySQL I have this warning: [Warning] Buffered warning: Changed limits: max_conne ...
- Linux CentOS 6.6安装JDK1.7
Linux CentOS 6.6安装JDK1.7 目录 1.下载JDK 2.卸载JDK 3.安装JDK 3.1..rpm后缀格式JDK安装方式 3.2..tar.gz后缀格式JDK安装方式 4.验证安 ...
- centos 7.0 编译 安装mysql 5.6.22 过程 已完成~ 成功~ 撒花~
mysql 下载目录/usr/local/srcmysql 解压目录 /usr/local/bin/mysql GitHub https://github.com/mysql/mysql-server ...
随机推荐
- python 接口开发(一)
cmd中,提示pip版本太低,先升级pip pip install --upgrade pip (pip,安装和管理python扩展包的工具) cmd下,pip,出现详细信息证明装成功了 pip ...
- 摘自:java夜未眠之java学习之道
目前Java可以说是产业界和学术界最热门的语言,许多读者都很急切想把Java学好.除非是武侠小说中的运功传送内力的方式,否则花上一段时间苦学是免不了的.花时间,不打紧,就是怕方法错误,事倍功半.我认为 ...
- log4j之NDC、MDC
NDC 介绍 NDC(Nested Diagnostic Context)是 Neil Harrison 在名为<Patterns for Logging Diagnostic Message ...
- PHP的循环结构
循环结构一.while循环 while循环是先判断条件,成立则执行 使用一个while循环输出的表格 <style type="text/css"> td{ te ...
- html网页标题
HTML代码 <html> <head> <!--<title>定义网页标题,显示在浏览器的标题--> <title>网页标题</ti ...
- 文本编辑器vim
Vim是一个功能强大的全屏幕文本编辑器,是Linux/UNIX上最大的文本编辑器,它的作用是建立.编辑.显示文本文件. Vim没有菜单,只有命令.
- SQUID之cache_peer
一共关系到cache_peer/always_direct/never_direct/hierarchy_stoplist/prefer_direct等配置项. squid的使用指南上,关于alway ...
- xp默认安装路径及本地用户配置文件存放路径修改
xp默认安装路径及本地用户配置文件存放路径修改 修改注册表可能会造成您的系统崩溃或数据丢失,请先行备份操作系统,以备不测!!! 备份注册表步骤: 1.在“桌面”上按快捷键“Ctrl+R”,调出“运行” ...
- 10、C#基础整理(集合)
集合 1.集合的引用 using System.Collections;//添加类 2.定义集合(ArrayList 或 Array) ArrayList arr = new ArrayList(); ...
- 负margin居中
<!DOCTYPE html><html> <head> <title> new document </title> <meta na ...