mzz2017 / lkl-haproxy Goto Github PK
View Code? Open in Web Editor NEWBBRPLUS for OpenVZ(OVZ)
License: GNU General Public License v3.0
BBRPLUS for OpenVZ(OVZ)
License: GNU General Public License v3.0
报错如下
● lkl-haproxy.service - lkl-haproxy
Loaded: loaded (/etc/systemd/system/lkl-haproxy.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Wed 2022-01-19 02:49:51 GMT; 1min 7s ago
Docs: https://github.com/mzz2017/lkl-haproxy
Process: 1049 ExecStart=/etc/lklhaproxy/redirect.sh (code=exited, status=0/SUCCESS)
Main PID: 1049 (code=exited, status=0/SUCCESS)
Jan 19 02:49:51 vps redirect.sh[1049]: Aborted
Jan 19 02:49:51 vps systemd[1]: lkl-haproxy.service: Succeeded.
Jan 19 02:49:51 vps systemd[1]: lkl-haproxy.service: Service RestartSec=100ms expired, scheduling restart.
Jan 19 02:49:51 vps systemd[1]: lkl-haproxy.service: Scheduled restart job, restart counter is at 5.
Jan 19 02:49:51 vps systemd[1]: Stopped lkl-haproxy.
Jan 19 02:49:51 vps systemd[1]: lkl-haproxy.service: Start request repeated too quickly.
Jan 19 02:49:51 vps systemd[1]: lkl-haproxy.service: Failed with result 'start-limit-hit'.
Jan 19 02:49:51 vps systemd[1]: Failed to start lkl-haproxy.
cat /dev/net/tun 这里的内容输入到变量,再作判断,如
tuntap=$(cat /dev/net/tun 2>&1 | tr '[:upper:]' '[:lower:]')
[[ ! $tuntap =~ 'in bad state' ]] && [[ ! $tuntap =~ '处于错误状态' ]] && echo -e "${Error} 未开启 tun/tap,请开启后再尝试该脚本 !" && exit 1
centos之前安装bbrplus成功,现在想卸载。运行脚本,提示不支持的发行版。
Created symlink from /etc/systemd/system/multi-user.target.wants/lkl-haproxy.service to /etc/systemd/system/lkl-haproxy.service.
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
请问如何在安装之后更改端口?
谢谢。
感谢大大编译的lkl,用的很舒服,拯救了我的OpenVZ VPS
最近发现原版的 https://github.com/lkl/linux 在2022-04-11日更新内核版本到了5.4版本
不知道可以继续编译个最新的版本吗?自己编译的无法使用,感谢~
有报错,报错同#1
webhorizon的openvz小鸡,我从debian10到debian9 再到centos7测试都不行,用2检测都是没有运行
换到nanqinlang的1.1.1就没问题
把rc.local的脚本延时运行redirect.sh就可以了
Chain PREROUTING (policy ACCEPT 185 packets, 11560 bytes)
pkts bytes target prot opt in out source destination
66 3440 DNAT tcp -- venet0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 to:10.0.0.2
8702 494K DOCKER all -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL
0 0 DNAT tcp -- venet0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 to:10.0.0.2
不清楚是不是有其他考虑, 使用的iptables -tnat -A
这样先启动了docker就会导致数据包被docker截取
改成iptable -tnat -I
就可以解决了, 请确认
RT
reinstall all
● lkl-haproxy.service - lkl-haproxy
Loaded: loaded (/etc/systemd/system/lkl-haproxy.service; enabled; vendor preset: disabled)
Active: active (running) since XXX
Docs: https://github.com/mzz2017/lkl-haproxy
Main PID: 25086 (redirect.sh)
CGroup: /system.slice/lkl-haproxy.service
├─25086 /bin/sh /etc/lklhaproxy/redirect.sh
└─25105 /usr/sbin/haproxy -f /etc/lklhaproxy/haproxy.cfg
XXX systemd[1]: Stopped lkl-haproxy.
XXX systemd[1]: Started lkl-haproxy.
XXX redirect.sh[25086]: net.ipv4.ip_forward = 1
XXX redirect.sh[25086]: ERROR: ld.so: object '/etc/lklhaproxy/liblkl-hijack.so' from LD_PRELOAD cannot be preloaded: ignored.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.