Trojan-go是什么请自行百度
安装前需要自备到国外VPS,一般配置需要40G硬盘+1G内存
yum install curl -y
yum install wget -y
curl https://get.acme.sh | sh // 创建快捷命令 alias acme.sh=~/.acme.sh/acme.sh // 注册账号 acme.sh --register-account -m youremail@email.com --server zerossl
bash -c "$(curl -fsSL https://raw.githubusercontent.com/JeannieStudio/all_install/master/trojan-go_install.sh)"
// 每天凌晨03:44进行证书续签 44 3 * * * source ~/.bash_profile && ~/.acme.sh/acme.sh --issue -d www.mydomain.com --standalone --pre-hook "/nginx/nginx/sbin/nginx -s stop" --post-hook "/nginx/nginx/sbin/nginx" > /dev/null
yum install gcc gcc-c++ kernel-devel -y