TeamSpeak voice server set up

1. Download

Download the server side

Transmitting to the server file transfer tool (/ the root directory)

        

        

        

2, installation

Update System

yum update

 

Open ports

systemctl start firewalld
firewall-cmd --zone=public --add-port=9987/udp --permanent
firewall-cmd --zone=public --add-port=10011/tcp --permanent
firewall-cmd --zone=public --add-port=30033/tcp --permanent
firewall-cmd --reload


 

Create teamspeak user and password

useradd teamspeak
passwd teamspeak

 

Decompression

tar -xvf teamspeak3-server_linux_amd64-3.11.0.tar.bz2
mv teamspeak3-server_linux_amd64 teamspeak3

Copy to the user and empower

cp -R teamspeak3 /home/teamspeak
chown -R teamspeak:teamspeak /home/teamspeak/teamspeak3

Use teamspeak user, start the service

su - teamspeak
cd teamspeak3
touch .ts3server_license_accepted
./ts3server_startscript.sh start

There will be the following, please save

   

 

3, add systemctl Service


In order to facilitate the management server, you can add TeamSpeak server CentOS service, add a file named "ts3.service" in "/ lib / systemd / system /" directory, use the following command:

su -
vi /lib/systemd/system/ts3.service
将如下内容添加至”ts3.service”文件中:
[Unit]
Description=Team Speak 3 Server
After=network.target
[Service]
WorkingDirectory=/home/teamspeak/teamspeak3
User=teamspeak
Group=teamspeak
Type=forking
ExecStart=/home/teamspeak/teamspeak3/ts3server_startscript.sh start inifile=ts3server.ini
ExecStop=/home/teamspeak/teamspeak3/ts3server_startscript.sh stop
PIDFile=/home/teamspeak/teamspeak3/ts3server.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target

TeamSpeak then use the following command to start the service, and set it to automatic startup, the last check the service status:
 

systemctl start ts3
systemctl enable ts3
systemctl status ts3

4, need to give Ali cloud server instance on rules add the security group to use client login

 

 

Log client and enter the ip address, will be out of a need to fill in the serial number, which is stored above information

This part of the token

 

 

 

 

 

 

 

 

 

Published 18 original articles · won praise 0 · Views 282

Guess you like

Origin blog.csdn.net/m0_46400538/article/details/104774100