#安装KtcpTun-----------------------
echo "=========kcptun服务端安装开始========="
cd /root
wget https://github.com/xtaci/kcptun/releases/download/v20190109/kcptun-linux-amd64-20190109.tar.gz
tar -zxvf kcptun-linux-amd64-20190109.tar.gz
#安装supervisor-----------------------
echo "=========supervisor安装开始========="
yum install supervisor -y
mkdir -p /root/kcptun/
touch stdout_logfile = /root/kcptun/kcptun.log
cat > /etc/supervisord.d/kcptun.ini <<"EOF"
[program:kcptun]
command = /root/server_linux_amd64 -l :9999 -t 127.0.0.1:8888 -key test123 -crypt aes -mode fast2
autostart = true
autorestart = true
;stdout_logfile 日志文件,需要自己手动创建,否则无法正常启动
stdout_logfile = /root/kcptun/kcptun.log
EOF
systemctl start supervisord
systemctl enable supervisord

分类: Main

0 条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注