Skip to content

Instantly share code, notes, and snippets.

View lyekumchew's full-sized avatar
🐢
SLOW DANCING

AUTUMN lyekumchew

🐢
SLOW DANCING
  • 06:43 (UTC +08:00)
View GitHub Profile
@lyekumchew
lyekumchew / curl.md
Created August 29, 2020 12:13 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

代理服务器 Cake 队列规则常用参数推荐

为什么选用 Cake

Cake 使用主动队列管理(AQM)技术保持全局同步,可以控制延迟,有效利用宽带。同时它还可以保证每个主机,每个流公平的分享宽带。

使用 Cake 的条件

Cake 与 kernel 4.19 并入主线,因此使用 Cake 需要 kernel 和 iproute2 版本大于 4.19。如何确认 kernel 和 iproute2 版本,以及如何升级本文不做详细说明。

如何启用 Cake

以 root 身份执行命令 tc qdisc replace dev eth0 root cake,其中 eth0 是网络接口名。