net.ipv4.tcp_rmem的Linux配置

0 linux ipv4

我正在尝试使用以下命令创建脚本:

    sysctl -w net.ipv4.tcp_rmem=65536 87380 16777216
Run Code Online (Sandbox Code Playgroud)

但是,我收到此错误:

    net.ipv4.tcp_wmem = 65536

    error: "65536" must be of the form name=value

    error: "16777216" must be of the form name=value
Run Code Online (Sandbox Code Playgroud)

我在互联网上研究了该命令是有效的,但它不起作用。

小智 6

您需要引用该值,以便将其显示为单个“值”,如

sysctl -w net.ipv4.tcp_rmem="65536 87380 16777216"
Run Code Online (Sandbox Code Playgroud)