# 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] 删除。
我来说两句