Trojan-go one-click quick installation under CentOS 7

What is Trojan-go? Please use Baidu
before installation. You need to prepare a foreign VPS before installation. The general configuration requires 40G hard disk + 1G memory.

Install pre-programs

  • install curl
yum install curl -y
  • install wget
yum install wget -y
  • Install the acme certificate tool
curl  https://get.acme.sh | sh
// 创建快捷命令
alias acme.sh=~/.acme.sh/acme.sh
// 注册账号 
acme.sh --register-account  -m [email protected] --server zerossl

One-click installation of trojan-go

bash -c "$(curl -fsSL https://raw.githubusercontent.com/JeannieStudio/all_install/master/trojan-go_install.sh)"

Automatic certificate renewal

// 每天凌晨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

Problems that may be encountered during installation

  1. If there is a compilation error, please run the following command directly
yum install gcc gcc-c++ kernel-devel -y
  1. If it prompts that the website compilation error occurs, please directly replace another website and try again

Guess you like

Origin blog.csdn.net/jinba225/article/details/123593356