在Debian 10上安装Wondershaper

理查德·巴拉克拉夫
# apt-get install wondershaper
# wondershaper wlan0 24000 16000

怎么办?!

  • 我怎么知道它是否正在运行?
  • 如何让它在重新启动后自动启动?(并配置它。)

我看到提到的配置文件都不存在(该目录/etc/conf.d甚至不存在),并且下面没有任何内容/etc/init.d,我不明白systemd但它似乎也不存在:

# systemctl start wondershaper
Failed to start wondershaper.service: Unit wondershaper.service not found.
理查德·巴拉克拉夫

从当前源安装:

# apt-get purge wondershaper
# cd
# mkdir wondershaper
# git clone https://github.com/magnific0/wondershaper.git
# cd wondershaper
# make install
# vi /etc/systemd/wondershaper.conf
# systemctl enable --now wondershaper.service

在外部(互联网连接)接口上运行时,我发现内部 SSH 流量在进行大文件复制时滞后。因此我切换到在内部网络上运行,我的感觉是这是有效的。

/etc/systemd/wondershaper.conf

IFACE="br0"

# Download rate in Kbps
DSPEED="1000000"

# Upload rate in Kbps
USPEED="1000000"

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章