1. An overview of the
This article describes how to install Freeswitch on debian 8. You can use the systemctl management service to view logs and introduce important directories
2. Install
3.1. Operating system
The operating system used in this article is Debian.
root@debian:/usr/share/freeswitch# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.8 (jessie)
Release: 8.8
Codename: jessieCopy the code
3.2. Configure the software source
It is important to add the following information to /etc/apt/sources.list, otherwise there will be various problems with installation:
deb http://mirrors.163.com/debian/ jessie main contrib non-free
deb-src http://mirrors.163.com/debian/ jessie main contrib non-free
deb http://mirrors.163.com/debian/ jessie-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian/ jessie-updates main contrib non-free
deb-src http://mirrors.163.com/debian/ jessie-updates main contrib non-free
deb http://mirrors.163.com/debian-security/ jessie/updates main contrib non-free
deb-src http://mirrors.163.com/debian-security/ jessie/updates main contrib non-freeCopy the code
If the update is successful, the configuration is successful
apt-get updateCopy the code
3.3. Configure the Freeswitch source and install Freeswitch
This section refers to the implementation of updates according to the official documentation
- Configure Freeswitch to update the data source and corresponding public key
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 "> / etc/apt/sources. List. D/freeswitch. ListCopy the code
- Run the following command to install all operations
apt-get update && apt-get install freeswitch-meta-allCopy the code
- After the installation is successful, the Freeswitch process is displayed
root@debian:/etc/apt# ps -Af | grep freeswitch
freeswi+ 5888 1 1 01:48 ? 00:00:04 /usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat
root 17699 847 0 01:52 pts/0 00:00:00 grep freeswitchCopy the code
3.4 freeswitch operation
- Systemctl Uses the freeswitch.service operation
# # immediately start systemctl start freeswitch. Service to immediately stop systemctl stop freeswitch. # service restart systemctl restart freeswitch.serviceCopy the code
- Fs_cli You can perform operations by using the fs_cli freeswitch
3.5. Important Directories
Some freeswitch important directories, others can be searched by using find. – / etc/freeswitch: home directories, include all of the configuration – / lib/systemd/system/freeswitch. Service: systemctl related configuration in this file, configure freeswitch startup parameter
3.6. View logs
To view logs, you can run the following command in addition to using fs_cli
tail -f /var/log/freeswitch/freeswitch.logCopy the code