CentOS Server 部署

在 CentOS 7.x / 8.x / Stream 上部署 HelpChat Server 13。

说明

所有 Linux 发行版的部署步骤完全相同,区别仅在防火墙命令。完整部署流程请参阅 Ubuntu Server 部署。

一、部署步骤

bash
tar -xzf HelpChat_Server_Linux_amd64_<版本>.tar.gz
cd HelpChat_Server_Linux_amd64_<版本>

sudo mkdir -p /opt/helpchat_server
sudo cp -r * /opt/helpchat_server/
cd /opt/helpchat_server

sudo chmod +x helpchatsvr
sudo chmod +x bin/ffmpeg bin/ffprobe bin/hcupdater

sudo ./helpchatsvr install
sudo ./helpchatsvr start
sudo ./helpchatsvr status

二、运行模式与数据库配置

修改 config/helpchatsvr.ini 中的 [runtime] 和 [database] 段。详见 Ubuntu Server 部署 第六、七节。

三、CentOS 防火墙配置

bash
sudo firewall-cmd --permanent --add-port=6800/tcp
sudo firewall-cmd --permanent --add-port=6866/tcp
sudo firewall-cmd --permanent --add-port=6888/tcp
sudo firewall-cmd --permanent --add-port=6816/tcp
sudo firewall-cmd --permanent --add-port=6898/tcp
sudo firewall-cmd --permanent --add-port=6980/tcp
sudo firewall-cmd --reload

四、管理后台

text
访问地址:http://服务器IP:6980
默认账号:admin
默认密码:helpchat