1.准备一台国外服务器安装centos7
2.买一个国外域名解析到这台服务器上,二级域名也可以
如想套cdn可将dns改为cf的dns,并在cf上进行域名解析
cf网址: https://www.cloudflare.com/zh-cn/
3.安装软件
yum update -y #CentOS 命令 yum install -y curl #CentOS 命令 yum install -y socat #CentOS 命令
4.安装acme生成域名ssl证书
curl https://get.acme.sh | sh
5.配置域名解析的域名
~/.acme.sh/acme.sh --register-account -m xxxx@xxxx.com ~/.acme.sh/acme.sh --issue -d 域名 --standalone
6.安装证书到指定目录
~/.acme.sh/acme.sh --installcert -d 域名 --key-file /root/private.key --fullchain-file /root/cert.crt
7.安装x-ui面板,并配置登录账号密码,端口号
bash <(curl -Ls https://raw.githubusercontent.com/sprov065/x-ui/master/install.sh)
8.登录后台,网址 ip:端口
9.登录后台以后创建入站
10.配置参数
注意:公钥私钥不要写错了 /root/cert.crt /root/private.key 域名填写自己的域名就行
11.下载客户端,建议使用v2rayNg
http://www.cc120.top/ambulance/5872.html
12.windows版v2rayNg配置好以后需要重启电脑才能生效