Transmission状态提示错误:UDP Failed to set receive/send buffer
斐讯N1安装的Transmission运行状态检查提示错误
root@n1:/usr/bin# service transmission-daemon status
● transmission-daemon.service - Transmission BitTorrent Daemon
Loaded: loaded (/lib/systemd/system/transmission-daemon.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2020-05-23 16:57:56 CST; 4min 33s ago
Process: 6425 ExecStop=/bin/kill -s STOP $MAINPID (code=exited, status=0/SUCCESS)
Main PID: 8028 (transmission-da)
CGroup: /system.slice/transmission-daemon.service
└─8028 /usr/bin/transmission-daemon -f --log-error
May 23 16:57:56 n1 systemd[1]: Started Transmission BitTorrent Daemon.
May 23 16:58:04 n1 transmission-daemon[8028]: [2020-05-23 16:58:04.421 CST] UDP Failed to set receive buffer: reques
May 23 16:58:04 n1 transmission-daemon[8028]: [2020-05-23 16:58:04.421 CST] UDP Failed to set send buffer: requested
解决方法:
1.编辑文件
/etc/sysctl.conf
2.在文件末尾添加如下内容,示例接收缓冲区设置为16MB,将发送缓冲区设置为4MB,可以自行修改
net.core.rmem_max = 16777216
net.core.wmem_max = 4194304
3.生效
sysctl -p
重新执行命令,查看是否仍有错误提示。