搭建linux下teamspeak3多人语音服务器
最近项目中新的需求,需要支持多人在线实时通话。就安装测试一下teamspeak。
http://www.teamspeak.com/ 主页有服务器版本和客户端版本供下载安装。
软硬件环境:
melot@melot-kkcam:~$ uname -a Linux melot-kkcam 3.13.0-40-generic #69-Ubuntu SMP Thu Nov 13 17:53:56 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux melot@melot-kkcam:~$ head -n 1 /etc/issue Ubuntu 14.04.1 LTS \n \l melot@melot-kkcam:~$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 58 model name : Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz ****** cpu MHz : 1600.000 cache size : 3072 KB ****** cpu cores : 2 ****** melot@melot-kkcam:~$ cat /proc/meminfo MemTotal: 3924304 kB
1. 下载并解压64位linux server版本teamspeak
wget http://dl.4players.de/ts/releases/3.0.11.2/teamspeak3-server_linux-amd64-3.0.11.2.tar.gz tar -zxvf teamspeak3-server_linux-amd64-3.0.11.2.tar.gz sudo mv teamspeak3-server_linux-amd64 /opt/teamspeak3/ cd /opt/teamspeak3/teamspeak3-server_linux-amd64
2. teamspeak安装配置mysql
参考 http://www.cnblogs.com/zzugyl/p/3688796.html
melot@melot-kkcam:~/file$ mysql -u root -prootmelot Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 43 Server version: 5.5.41-0ubuntu0.14.04.1 (Ubuntu) Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> CREATE DATABASE ts3db; Query OK, 1 row affected (0.00 sec) mysql> USE ts3db; Database changed mysql> CREATE USER 'ts3'@'localhost' IDENTIFIED BY 'ts3melot'; Query OK, 0 rows affected (0.00 sec) mysql> GRANT ALL ON ts3db.* TO 'ts3'@'localhost'; Query OK, 0 rows affected (0.00 sec) mysql> quit Bye
3. 配置teamspeak和对应mysql
根据 http://bbs.chinaunix.net/thread-1929023-1-1.html 或者下载他的附件 特此感谢
修改相应配置文件和数据库文件,启动服务。
最终生成token记住,登录管理需要这个key。
melot@melot-kkcam:/opt/teamspeak3/teamspeak3-server_linux-amd64$ ------------------------------------------------------------------ I M P O R T A N T ------------------------------------------------------------------ Server Query Admin Account created loginname= "serveradmin", password= "xnjvIjrZ" ------------------------------------------------------------------ ------------------------------------------------------------------ I M P O R T A N T ------------------------------------------------------------------ ServerAdmin privilege key created, please use it to gain serveradmin rights for your virtualserver. please also check the doc/privilegekey_guide.txt for details. token=J8EvA5xhHzQ7GqttilOUoyFn81uYESRyy7PFLrYJ ------------------------------------------------------------------
4.最后展示一下成果,在win和android连麦的情况。