安裝 wondershaper:
sudo apt-get install wondershaper
示例: $ sudo wondershaper eth0 100 20 (限制eth0網卡下載速度100K,上傳速度20K)
示例: $ sudo wondershaper clear eth0 (清除eth0網卡的網速限制)
ps:查看網卡名稱用ifconfig -a 命令
安裝 wondershaper:
sudo apt-get install wondershaper
示例: $ sudo wondershaper eth0 100 20 (限制eth0網卡下載速度100K,上傳速度20K)
示例: $ sudo wondershaper clear eth0 (清除eth0網卡的網速限制)
ps:查看網卡名稱用ifconfig -a 命令
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta