本案例基于阿里云ECS部署,其厂商设备均可
1、关闭防火墙和selinux安全
$ systemctl stop firewalld
$ systemctl disable firewalld
$ sed -i 's/SELINUX=.*/SELINUX=disabled'/ /etc/selinux/config
$ setenforce 0
2、下载文件
$ yum install -y wget
$ wget https://files.teamspeak-services.com/releases/server/3.13.7/teamspeak3-server_linux_amd64-3.13.7.tar.bz2
3、解压文件
$ yum install -y bzip2
$ tar -xvf teamspeak3-server_linux_amd64-3.13.6.tar.bz2
4、创建用户,设置文件属性
$ useradd teamspeak
$ chmod 757 /home/teamspeak
$ chown teamspeak:teamspeak teamspeak3-server_linux_amd64/
$ mv teamspeak3-server_linux_amd64 /home/teamspeak/
5、进入文件
$ cd /home/teamspeak/teamspeak3-server_linux_amd64-3.13.6
$ touch .ts3server_license_accepted
6、放行云服务器安全组端口
9987 UDP
30033 TCP
10011 TCP
41144 TCP
7、获取秘钥
$ su teamspeak
$ ./ts3server_startscript.sh start
PS:生成的配置文件要备份
8、配置服务端自启动
$ cat /lib/systemd/system/teamspeak.service
[Unit]
Description=Teamspeak, The most superior online voice communication solution.
Wants=network-online.target
After=syslog.target network.target network-online.target
[Service]
User=teamspeak
Group=teamspeak
WorkingDirectory=/home/teamspeak/teamspeak3-server_linux_amd64/
ExecStart=/home/teamspeak/teamspeak3-server_linux_amd64/ts3server_startscript.sh start
ExecStop=/home/teamspeak/teamspeak3-server_linux_amd64/ts3server_startscript.sh stop
PIDFile=/home/teamspeak/teamspeak3-server_linux_amd64/ts3server.pid
Type=forking
[Install]
WantedBy=multi-user.target
//开启自启动
systemctl enable teamspeak.service
//启动TeamSpeak
systemctl start teamspeak.service
//停止TeamSpeak
systemctl stop teamspeak.service
//重启TeamSpeak
systemctl restart teamspeak.service
9、汉化
https://wwb.lanzouj.com/b01y2wwzc密码:9vfp
启动Teamspeak后再执行汉化程序,执行完毕后重启Teamspeak即可。