Generated with sparks and insights from 11 sources
Introduction
-
Step 1: Prepare a VPS server. Recommended providers include Vultr.
-
Step 2: Download necessary tools such as FinalShell for Windows or other platforms.
-
Step 3: Update the VPS system using commands like 'apt update -y' and 'apt install curl sudo -y'.
-
Step 4: Use a one-click installation script for Hysteria2 with the command 'wget -N --no-check-certificate https://raw.githubusercontent.com/flame1ce/hysteria2-install/main/hysteria2-install-main/hy2/hysteria.sh && bash hysteria.sh'.
-
Step 5: Configure Hysteria2 by editing the 'config.yaml' file located in '/etc/hysteria'.
-
Step 6: Start the Hysteria2 service using 'systemctl start hysteria-server.service' and enable it to start on boot with 'systemctl enable hysteria-server.service'.
-
Step 7: Configure the client, such as V2rayN for Windows or Shadowrocket for iOS/Mac, to connect to the Hysteria2 server.
Preparation [1]
-
VPS Provider: Recommended providers include Vultr.
-
Tool Download: Download tools like FinalShell for Windows, MacOS, or Linux.
-
Account Setup: Ensure you have a registered account with the VPS provider.
System Update [2]
-
Update Command: Use 'apt update -y' to update the system.
-
Install Curl: Use 'apt install curl sudo -y' to install necessary packages.
-
Kernel Upgrade: For CentOS, use 'yum -y update' and 'yum --enablerepo=elrepo-kernel install kernel-ml'.
Installation [3]
-
One-Click Script: Use 'wget -N --no-check-certificate https://raw.githubusercontent.com/flame1ce/hysteria2-install/main/hysteria2-install-main/hy2/hysteria.sh && bash hysteria.sh'.
-
Ensure wget: If wget is not installed, use 'apt-get install -y wget' for Debian/Ubuntu or 'yum install -y wget' for CentOS.
Configuration [3]
-
Config File: Edit 'config.yaml' located in '/etc/hysteria'.
-
Port Configuration: Default port is 443, can be changed to 8443 if needed.
-
TLS Configuration: Use ACME or specify your own TLS certificate paths.
-
QUIC Settings: Default settings for stream and connection receive windows are 8MB and 20MB respectively.
Service Management [1]
-
Start Service: Use 'systemctl start hysteria-server.service'.
-
Enable on Boot: Use 'systemctl enable hysteria-server.service'.
-
Restart Service: Use 'systemctl restart hysteria-server.service'.
-
Stop Service: Use 'systemctl stop hysteria-server.service'.
-
Check Status: Use 'systemctl status hysteria-server.service'.
Client Setup [1]
-
Windows: Use V2rayN, download from GitHub.
-
iOS/Mac: Use sing-box or Shadowrocket, available on the App Store.
-
Android: Use sing-box, available on Google Play or official site.
-
Configuration: Edit 'config.json' with server details, obfuscation password, and bandwidth settings.
Related Videos
<br><br>
<div class="-md-ext-youtube-widget"> { "title": "Hysteria 2 \u4e00\u952e\u5b89\u88c5\u6559\u7a0b\uff0c\u64cd\u4f5c\u7b80\u5355\uff01hysteria 2 sing-box\u5ba2\u6237\u7aef ...", "link": "https://www.youtube.com/watch?v=N6j3gWde8cQ", "channel": { "name": ""}, "published_date": "Apr 9, 2024", "length": "" }</div>
<div class="-md-ext-youtube-widget"> { "title": "VPS \u6781\u7b80\u65b9\u5f0f\u642d\u5efaHysteria2 \u8282\u70b9\uff0c\u79d1\u5b66\u4e0a\u7f51\u6ee1\u8f7d\u5e26\u5bbd\uff0c\u63d0\u5347\u7ffb\u5899 ...", "link": "https://www.youtube.com/watch?v=dm7AwKSh-F4", "channel": { "name": ""}, "published_date": "Mar 21, 2024", "length": "" }</div>
<div class="-md-ext-youtube-widget"> { "title": "Hysteria2\u7ffb\u5899\u8282\u70b9\u642d\u5efa\u90e8\u7f72| UDP\u8fdb\u9636\u534f\u8bae\u7684Hysteria2\u8282\u70b9 ...", "link": "https://www.youtube.com/watch?v=Tn7ykfiAKdU", "channel": { "name": ""}, "published_date": "Jan 19, 2024", "length": "" }</div>