1 | date -R |
1 | date -R |
1 | apt update |
1 | yum makecache |
1 | curl -O https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh |
1 | bash install-release.sh |
1 | bash install-dat-release.sh |
1 | bash install-release.sh --remove |
1 | vi /usr/local/etc/v2ray/config.json |
1 | { |
1 | apt-get update && apt-get install curl -y && apt-get install cron -y && apt-get install socat -y |
1 | yum update && yum install curl -y && yum install cron -y && yum install socat -y |
1 | curl https://get.acme.sh | sh |
1 | bash ~/.acme.sh/acme.sh --issue -d 域名 --alpn -k ec-256 |
1 | mkdir /etc/v2ray && sudo ~/.acme.sh/acme.sh --installcert -d 域名 --fullchainpath /etc/v2ray/v2ray.crt --keypath /etc/v2ray/v2ray.key --ecc |
1 | chmod 644 /etc/v2ray/v2ray.key |
1 | systemctl restart v2ray |