下载地址:
cd /usr/local/src
https://github.com/EAimTY/tuic/releases
wget https://github.com/EAimTY/tuic/releases/download/0.8.5/tuic-server-0.8.5-x86_64-linux-gnu
chmod +x tuic-server-0.8.5-x86_64-linux-gnu
# 复制文件到上级目录
cp -pdr tuic-server-0.8.5-x86_64-linux-gnu ../bin/
### 方便 centos Ubuntu 使用
vim /etc/systemd/system/tuic-server.service
[Unit]
Description=tuic, a feature-packed network utility optimized for networks of poor quality
Documentation=https://github.com/EAimTY/tuic#readme
After=network.target
[Service]
User=root
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_NET_RAW
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW
NoNewPrivileges=true
WorkingDirectory=/etc/tuic
ExecStart=/usr/local/bin/tuic-server-0.8.5-x86_64-linux-gnu -c /etc/tuic/config.json
Restart=on-failure
RestartPreventExitStatus=1
RestartSec=5
[Install]
WantedBy=multi-user.target
mkdir /etc/tuic
vim /etc/tuic/config.json
{
"port": 36716,
"token": [
"ewqerq-08B6-4BDB-8E34-dfweqwerfq"
],
"certificate": "/apps/nginx/sslkey/tycng.com/ecc/fullchain.crt",
"private_key": "/apps/nginx/sslkey/tycng.com/ecc/private.key",
"ip": "0.0.0.0",
"congestion_controller": "bbr",
"alpn": [
"h3"
],
"max_udp_relay_packet_size": 1146
}
systemctl start tuic-server
systemctl enable tuic-server
systemctl status tuic-server