Redis配置报错如下:

在启动Redis 4.0.13时遇到错误,包括maxclients限制、最大打开文件数不足、TCP backlog设置和overcommit_memory问题。解决方法包括修改配置文件redis.conf,将daemonize设置为yes以允许Redis作为守护进程运行,并调整系统设置以解决内存分配问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

120960:C 15 Sep 21:23:03.686 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
120960:C 15 Sep 21:23:03.686 # Redis version=4.0.13, bits=64, commit=00000000, modified=0, pid=120960, just started
120960:C 15 Sep 21:23:03.686 # Configuration loaded
120960:M 15 Sep 21:23:03.689 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
120960:M 15 Sep 21:23:03.689 # Server can’t set maximum open files to 10032 because of OS error: Operation not permitted.
120960:M 15 Sep 21:23:03.689 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase ‘ulimit -n’.
.
.-__ ''-._ _.- .. ‘’-._ Redis 4.0.13 (00000000/0) 64 bit
.-.-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in standalone mode |`-._`-...-` __...-.</

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值