Giter Club home page Giter Club logo

hy-tutorial's Introduction

Hy-tutorial

wget https://github.com/apernet/hysteria/releases/download/v1.3.5/hysteria-linux-amd64-avx
chmod +x hysteria-linux-amd64-avx
sysctl -w net.core.rmem_max=16777216
sysctl -w net.core.wmem_max=16777216

服务端配置config.json:

{
  "listen": ":[端口]",
  "protocol": "udp",
  "acme": {
    "domains": [
      "[域名]"
    ],
    "email": "[email protected]"
  },
  "auth": {
    "mode": "passwords", 
    "config": ["[密码]"]
  },
  "resolve_preference": "46"
}
vi /lib/systemd/system/hysteria.service

输入内容:

[Unit]
Description=Hysteria
After=network.target network-online.target nss-lookup.target
 
[Service]
Restart=on-failure
Type=simple
ExecStart=/root/hysteria-linux-amd64-avx -config /root/config.json server
 
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable hysteria
systemctl start hysteria

客户端配置:

首先在点我下载到v2ray目录下

然后新建一个config.json文档:

{
  "server": "[IP地址]:[同服务端端口]",
  "auth_str": "[同服务端密码]", 
  "up_mbps": 120, //上传速度,根据实际情况
  "down_mbps": 200,//下载速度,根据实际情况
  "insecure": false,
  "retry": 3,
  "socks5": {
    "listen": "127.0.0.1:10808"
  },
  "http": {
    "listen": "127.0.0.1:10809"
  },
  "server_name": "[同服务端域名]",
  "fast_open": true,
  "resolve_preference": "46"
}

hy-tutorial's People

Contributors

steventan100 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.