GithubHelp home page GithubHelp logo

json配置文件读取失败 about ehco HOT 7 CLOSED

wespochac avatar wespochac commented on May 29, 2024
json配置文件读取失败

from ehco.

Comments (7)

Ehco1996 avatar Ehco1996 commented on May 29, 2024

应该不会,配置一直是兼容的

可以贴一下失败配置文件上来

from ehco.

wespochac avatar wespochac commented on May 29, 2024

配置范例如下

{
"enable_ping": false,

"relay_configs": [
{
"listen": "0.0.0.0:11110",
"listen_type": "raw",
"transport_type": "raw",
"tcp_remotes": ["0.0.0.0:443"],
"udp_remotes": ["0.0.0.0:443"]
}
]
}

自启动服务如下
[Unit]
Description=ehco
After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service

[Service]
Type=simple
User=root
Restart=always
RestartSec=5
DynamicUser=true
ExecStart=/usr/bin/ehco -c /etc/ehco/config.json

[Install]
WantedBy=multi-user.target

from ehco.

Ehco1996 avatar Ehco1996 commented on May 29, 2024

我用这个配置文件测试了一下貌似没报错

❯ go run cmd/ehco/main.go -c test.json
2024-01-03T20:02:06+09:00	info	Start to watch relay config test.json
2024-01-03T20:02:06+09:00	info	relay	Start TCP relay Server <At=0.0.0.0:11110 Over=raw TCP-To=[0.0.0.0:443] UDP-To=[0.0.0.0:443] Through=raw>
2024-01-03T20:02:06+09:00	info	relay	Start UDP relay Server <At=0.0.0.0:11110 Over=raw TCP-To=[0.0.0.0:443] UDP-To=[0.0.0.0:443] Through=raw>

你的报错是 ehco 返回的么?

from ehco.

wespochac avatar wespochac commented on May 29, 2024

是的,报 g.libc版本缺失,是不是编译的版本无法在 centos7 上运行?

from ehco.

Ehco1996 avatar Ehco1996 commented on May 29, 2024

是的,报 g.libc版本缺失,是不是编译的版本无法在 centos7 上运行?

是的, cent7 上的 glibc 的版本太低了

from ehco.

wespochac avatar wespochac commented on May 29, 2024

有办法解决吗?我试了一下 debian11 也报同样的错误

from ehco.

Ehco1996 avatar Ehco1996 commented on May 29, 2024

有办法解决吗?我试了一下 debian11 也报同样的错误

需要自己升级一下 glibc, 或者用 docker 跑吧

from ehco.

Related Issues (20)

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.