参考:https://www.cnblogs.com/M-LittleBird/p/5902850.html
错误备注:
1.如果客户端要写入服务端的缓存体积过大,会造成客户端收到“socket failure on publish”的错误,这是因为output buffer默认设置决定的,可以在配置文件中找到这样的内容:
# Both the hard or the soft limit can be disabled by setting them to zero.
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit slave 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
如果要去掉大小的限制,把上边的都改成0即可。