Git Product home page Git Product logo

hysteria2's People

Contributors

0x648 avatar seagullz4 avatar zzxbaibai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hysteria2's Issues

关于证书申请的建议

大佬你好,我在使用您的一键安装脚本时发现hy2安装后无法运行,检查了一下hy2的配置文件后发现是域名和证书那里有问题 failed to load server config {"error": "invalid config: acme.domains: 我的域名: obtaining certificate,由于我使用的不是80/443端口,因此大概率是证书没有申请成功,最终使用您的一键脚本部署失败
在我的查找之后,我发现这个问题在hy2的官方文档中给出了解决方案
https://v2.hysteria.network/zh/docs/advanced/ACME-DNS-Config/
我使用了官方的一键脚本并尝试修改了配置文件,由于我用的cloudflare托管域名,所以我在配置文件中加了下面这一段,并修改了我自己的域名和其他cloudflare账户信息,最终成功部署

acme:
domains:
- "*.example.com"
email: [email protected]
type: dns
dns:
name: cloudflare
config:
cloudflare_api_token: Dxabckw9dB_jYBdi89kgyaS8wRjqqSsd679urScKOBP

希望您的一键脚本在申请证书的时候针对非80/443端口证书申请也能够加上这部分的参数选择

选择1安装以后造成系统无响应,ssh端口,无法再次连接

日志

root@racknerd-a0f00c:~# ./install.sh
安装必要依赖中......
依赖安装完成

░██ ░██
░██ ░██ ░████ ░█ ░█ ░█░█░█
░██ ░██ ░█ █ ░█ ░█ ░█ ░█
░██████ ░██████ ░█ ░█ ░█ ░█
░██ ░██ ░█ ░█ ░█ ░█ ░█ ░█░█░█
░██ ░██ ░██ █ ░█ ░█

人生有两出悲剧:一是万念俱灰,另一是踌躇满志
选择一个操作,小崽子(ง ื▿ ื)ว:

  1. 安装(以梦为马)
  2. 卸载(以心为疆)
  1. 查看配置(穿越时空)
  2. 退出脚本(回到未来)
  1. 在线更新hy2内核(您当前的hy2版本:你还没有安装,老登)
  2. 安装xanmod内核(更好的调动网络资源)
    hy2内核最新版本为: v2.3.0

hysteria2状态: 未运行
输入操作编号 (1/2/3/4/5): 1
别急,别急,别急,老登
原神,启动。
正在下载中,老登( ゚д゚)つBye

在执行完1以后,显示 正在下载中 会卡住,等一会会直接断开ssh链接且无法再次连接上,需要重启vps才可以重新ssh。

系统配置
Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-100-generic x86_64)

端口跳跃无法使用

配置好服务端 复制节点信息到nekobox 无法使用 nekobox是最新版3.24内核使用sing-box hysteria2也是2.2的最新版 删除nekobox节点配置里面的端口跳跃栏里面的数据留空 不使用 节点是可以使用的

请问下这是怎么回事???

VPS是重装之后 没装任何东西 就安装了warp 我是v6机

6

echo "而你,我的朋友,你是恋爱脑里的常青树,Joker里的顶梁柱,麦当劳的吉祥物,哥谭市的大头目,扑克牌的最大数,蝙蝠侠的大客户……"

578行从hysteria2官网直接下载最新的服务端程序可能因为解析问题卡死

建议修改为从github获取最新版本

#!/bin/bash

设置 GitHub 仓库的 URL

REPO_URL="https://github.com/apernet/hysteria/releases"

使用 curl 获取最新版本的 release 信息

LATEST_RELEASE=$(curl -s $REPO_URL/latest | grep -o '"tag_name":.[^}],' | head -n 1 | sed 's/[^"]"//;s/",//')

构建最新版本的下载地址

DOWNLOAD_URL="https://github.com/apernet/hysteria/releases/download/$LATEST_RELEASE/hysteria-linux-amd64"

echo "Latest release version: $LATEST_RELEASE"
echo "Download URL: $DOWNLOAD_URL"

更新内核后cat: /root/hy3/neko.txt: No such file or directory

开发者,您好。我本来是用的好好的,今天执行脚本,选择了5更新内核,更新后,再次选择3查看配置出现此问题。发现原来导入到NekoBox中的hy2节点还是可以正常使用的。您给看下这个是啥问题。另外看到更新后版本还是显示23.12.03,和之前版本一致,没有变化,而不是Release中最新版本23.12.03.04.53
1

安装结束,好像服务没有正常启动,还请抽空看看。

root@e4-240702:~# systemctl status hysteria.service
● hysteria.service - My Hysteria Server
Loaded: loaded (/etc/systemd/system/hysteria.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2024-07-06 08:23:30 UTC; 12s ago
Process: 4577 ExecStart=/root/hy3/hysteria-linux-arm64 server (code=exited, status=1/FAILURE)
Main PID: 4577 (code=exited, status=1/FAILURE)

Jul 06 08:23:30 e4-240702 systemd[1]: hysteria.service: Scheduled restart job, restart counter is at 5.
Jul 06 08:23:30 e4-240702 systemd[1]: Stopped My Hysteria Server.
Jul 06 08:23:30 e4-240702 systemd[1]: hysteria.service: Start request repeated too quickly.
Jul 06 08:23:30 e4-240702 systemd[1]: hysteria.service: Failed with result 'exit-code'.
Jul 06 08:23:30 e4-240702 systemd[1]: Failed to start My Hysteria Server.

更新无法正常恢复服务

最近的hy更新,使用脚本更新功能后,服务异常,需要手动kill后再启动服务才能正常。怀疑结束进程的代码没有执行?

log如下:
选择一个操作,小崽子(ง ื▿ ื)ว:

  1. 安装(以梦为马)
  2. 卸载(以心为疆)
  1. 查看配置(穿越时空)
  2. 退出脚本(回到未来)
  1. 在线更新hy2内核(您当前的hy2版本:v2.2.4)
    hy2究极版本v24.01.01

hysteria2状态: 运行中
输入操作编号 (1/2/3/4/5): 5
正在更新中,别急,老登
更新完成,老登

root @ tokyo-amd in ~ [9:52:03] C:130

$ service hysteria status
× hysteria.service - My Hysteria Server
Loaded: loaded (/etc/systemd/system/hysteria.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2024-03-25 09:51:53 HKT; 20s ago
Process: 3899388 ExecStart=/root/hy3/hysteria-linux-amd64 server (code=exited, status=203/EXEC)
Main PID: 3899388 (code=exited, status=203/EXEC)
CPU: 1ms

Mar 25 09:51:53 tokyo-amd systemd[3899388]: hysteria.service: Failed at step EXEC spawning /root/hy3/hy>
Mar 25 09:51:53 tokyo-amd systemd[1]: Started My Hysteria Server.
Mar 25 09:51:53 tokyo-amd systemd[1]: hysteria.service: Main process exited, code=exited, status=203/EX>
Mar 25 09:51:53 tokyo-amd systemd[1]: hysteria.service: Failed with result 'exit-code'.
Mar 25 09:51:53 tokyo-amd systemd[1]: hysteria.service: Scheduled restart job, restart counter is at 7.
Mar 25 09:51:53 tokyo-amd systemd[1]: Stopped My Hysteria Server.
Mar 25 09:51:53 tokyo-amd systemd[1]: hysteria.service: Start request repeated too quickly.
Mar 25 09:51:53 tokyo-amd systemd[1]: hysteria.service: Failed with result 'exit-code'.
Mar 25 09:51:53 tokyo-amd systemd[1]: Failed to start My Hysteria Server.

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.