系统环境
系统/Docker | 版本 |
Debian | 12 |
FusionPBX | 5.4.0 |
FreeSWITCH | 1.10.12 |
arm64v8/debian | stable-20241111 |
amd64/debian | bookworm-20241111 |
配置内网源
搭建apt源
Kubernetes部署 apt-mirror_apt-mirror 私人仓库-优快云博客
#debian12 arm64架构
cat /etc/apt/sources.list.d/freeswitch.list
deb [arch=arm64 signed-by=/usr/share/keyrings/signalwire-freeswitch-repo.gpg] http://192.16.15.8:32801/freeswitch.signalwire.com/repo/deb/debian-release bookworm main
EOF
#debian12 amd64架构
cat /etc/apt/sources.list.d/freeswitch.list
deb [arch=amd64 signed-by=/usr/share/keyrings/signalwire-freeswitch-repo.gpg] http://192.16.15.8:32801/freeswitch.signalwire.com/repo/deb/debian-release bookworm main
EOF
用官方源安装相当慢
Debian | FreeSWITCH Documentation
安装FreeSWITCH
apt-get update && apt-get upgrade && apt-get install -y freeswitch-meta-all
#验证
fs_cli -rRS
安装FusionPBX
wget -O - https://raw.githubusercontent.com/fusionpbx/fusionpbx-install.sh/master/debian/pre-install.sh | sh;
#
cd /usr/src/fusionpbx-install.sh/debian && ./install.sh
安装完成
Installation Notes.
Please save this information and reboot this system to complete the install.
Use a web browser to login.
domain name: https://195.7.0.3
username: admin
password: hPPkpn0RtKwOKfAVkMXeZV1clE
The domain name in the browser is used by default as part of the authentication.
If you need to login to a different domain then use username@domain.
username: admin@195.7.0.3
Official FusionPBX Training
Fastest way to learn FusionPBX. For more information https://www.fusionpbx.com.
Available online and in person. Includes documentation and recording.
Location: Online
Admin Training: TBA
Advanced Training: TBA
Continuing Education: https://www.fusionpbx.com/training
Timezone: https://www.timeanddate.com/weather/usa/idaho
Additional information.
https://fusionpbx.com/members.php
https://fusionpbx.com/training.php
https://fusionpbx.com/support.php
https://www.fusionpbx.com
http://docs.fusionpbx.com
FQA
1. Fusionpbx首页忘记密码
chmod 777 /etc/fusionpbx
cd /etc/fusionpbx
mv config.conf config1.conf
刷新页面,进入安装程序
2. Check permissions /etc/fusionpbx/ must be writable
chmod 777 /etc/fusionpbx/
刷新页面,进入安装程序
3. Pgsql密码
cat /etc/fusionpbx/config.conf
psql -d fusionpbx -h localhost -U fusionpbx
4. Nginx日志报:stream, client: 10.6.18.116, server: fusionpbx, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.1-fpm.sock:", host: "10.6.7.102:1443
#安装完后,修改配置文件
vi /etc/nginx/sites-enabled/fusionpbx
:%s/php8.1-fpm/php8.2-fpm/g
nginx -s reload
#或者
sed -i 's/php8.1-fpm/php8.2-fpm/g' /etc/nginx/sites-enabled/fusionpbx
nginx -s reload
5. Docker镜像部署,没有system,自启服务
php-fpm8.2 -D;
/usr/bin/freeswitch -ncwait -nonat;
sudo -u postgres nohup /usr/lib/postgresql/16/bin/postgres -D /var/lib/postgresql/16/main -c config_file=/etc/postgresql/16/main/postgresql.conf &
nginx;
6. Error: SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?
#查看密码
vi /etc/fusionpbx/config.conf
#修改密码
sudo -u postgres psql;
ALTER USER fusionpbx WITH PASSWORD '7k12CxsnKqA8TcWAlS0F9MdRQo0';
\q