服务器端口

9987 UDP 默认语音服务器端口
10011 TCP ServerQuery raw 端口
10022 TCP ServerQuery SSH 端口 (3.3.0 以上版本服务端)
30033 TCP 文件传输端口
41144 TCP TSDNS

TeamSpeak

Linux 搭建教程

首先安装 bzip2 解压工具:

apt install bzip2
# 或
yum install bzip2

本教程使用的服务器系统为 CentOS 7.9

由于 TeamSpeak 不能使用 root 用户,所以新建一个用户:

useradd ts3
# 然后使用 passwd ts3 设置密码

创建目录并下载服务端:

cd /
mkdir teamspeak3
cd /teamspeak3
wget https://files.teamspeak-services.com/releases/server/3.13.7/teamspeak3-server_linux_amd64-3.13.7.tar.bz2

解压:

tar -xjvf teamspeak3-server_linux_amd64-3.13.7.tar.bz2

赋予权限:

chown -R ts3:ts3 teamspeak3-server_linux_amd64

进入目录:

cd teamspeak3-server_linux_amd64/

切换用户:

su ts3

接受协议:

touch .ts3server_license_accepted

启动服务器:

./ts3server_startscript.sh start

# 或自定义密码启动
./ts3server_minimal_runscript.sh serveradmin_password=<你的密码>

启动后会出现类似信息:

Server Query Admin Account created
loginname= "登录昵称"
password= "密码"
apikey= "APIKey"

ServerAdmin privilege key created
token=管理员令牌

开机自启

vim /etc/rc.local

i 在最后添加:

/home/teamspeak/teamspeak/ts3server_startscript.sh start

保存退出:

:wq

重启服务器后 TeamSpeak 即可自动启动。


Mumble

官网:https://www.mumble.com/

创建用户:

adduser mumble

添加权限:

sudo adduser mumble sudo

切换用户:

su mumble

进入目录:

cd /home/mumble

安装:

sudo apt-get install mumble-server
sudo dpkg-reconfigure mumble-server

开放端口:

64738

TS3AudioBot

GitHub
https://github.com/Splamy/TS3AudioBot

命令文档
https://github.com/Splamy/TS3AudioBot/wiki/CommandSystem


搭建教程

安装依赖:

sudo yum -y install epel-release
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
sudo yum -y install ffmpeg opus-devel

解压:

tar -xzf TS3AudioBot_linux_x64.tar.gz

启动:

./TS3AudioBot

# 后台运行
nohup ./TS3AudioBot &

常用配置

ts3audiobot.toml

[web]
hosts = ["*"]
port = 58913

[web.api]
enabled = true

[web.interface]
enabled = true
path = ""

rights.toml

[[rule]]
groupid = []
useruid = []

"+" = "*"

bot.toml

[connect]

server_password = { pw = "" }

channel_password = { }

client_version = { }

address = "*"

获取 API Token

私聊机器人:

!api token

登录 Web 面板:

http://服务器IP:58913

输入 token 即可。


本地音乐

bots/default/playlists/

网易云音乐播放

歌曲直链格式:

http://music.163.com/song/media/outer/url?id=歌曲ID.mp3

指令系统

指令格式:

!<commandname> <parameter1> <parameter2>

查看帮助:

!help command <commandname>

开机自启

创建服务:

vim /etc/systemd/system/ts3audiobot.service

写入:

[Unit]
Description=TS3AudioBot
After=teamspeak.service

[Service]
Type=simple
User=teamspeak
Group=teamspeak
KillSignal=SIGINT
Restart=on-failure
RestartSec=10
WorkingDirectory=/home/teamspeak/TS3AudioBot/
ExecStart=/home/teamspeak/TS3AudioBot/TS3AudioBot

[Install]
WantedBy=multi-user.target

常用命令

更新配置:

systemctl daemon-reload

开机启动:

systemctl enable ts3audiobot.service

启动:

systemctl start ts3audiobot.service

停止:

systemctl stop ts3audiobot.service

重启:

systemctl restart ts3audiobot.service

查看状态:

systemctl status ts3audiobot.service

TS3AudioBot + 网易云 API

网易云 API
https://github.com/Binaryify/NeteaseCloudMusicApi

播放插件
https://github.com/ZHANGTIANYAO1/TS3AudioBot-NetEaseCloudmusic-plugin

查看插件:

!plugin list

加载插件:

!plugin load 0

插件指令

登录网易云:

!yun login

播放歌曲:

!yun play [音乐名称]

添加歌曲:

!yun add [音乐名称]

播放歌单:

!yun gedan [歌单名称]

播放歌单ID:

!yun gedanid [歌单ID]

播放歌曲ID:

!yun playid [歌曲ID]

下一首:

!yun next

网盘下载

最后修改:2026 年 03 月 07 日
如果我的文章对你有用,请帮助小站能够存活下去( •̀ ω •́ )✧