搭建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連麥的情況。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM