开发者社区> 问答> 正文

redis-server无法启动

redis-server无法启动

[[root@AY1304091753101 init.d]# redis-server /etc/redis.conf
15475:C 18 May 15:55:48.797 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
15475:C 18 May 15:55:48.797 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=15475, just started
15475:C 18 May 15:55:48.797 # Configuration loaded

        _._                                                  
   _.-``__ ''-._                                             

.-` . `_. ''-. Redis 4.0.9 (00000000/0) 64 bit
.- .-. / ., ''-._
( ' , .- | , ) Running in standalone mode
|-._-...- __...-.-._|' _.-'| Port: 6379
| -._ ._ / _.-' | PID: 15475
-._ -._ `-./ _.-' _.-'
|-._-._ `-.__.-' _.-'_.-'|
| -._-._ _.-'_.-' | http://redis.io
-._ -._`-.__.-'_.-' _.-'
|-._-._ `-.__.-' _.-'_.-'|
| -._-._ _.-'_.-' |
-._ -._`-.__.-'_.-' _.-'

-._ -.__.-' _.-'

  `-._        _.-'                                           
      `-.__.-'                                               

15475:M 18 May 15:55:48.799 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
15475:M 18 May 15:55:48.799 # Server initialized
15475:M 18 May 15:55:48.800 * DB loaded from disk: 0.000 seconds
15475:M 18 May 15:55:48.800 * Ready to accept connections
15475:M 18 May 15:55:48.800 - 0 clients connected (0 slaves), 786536 bytes in use
15475:M 18 May 15:55:49.326 - Accepted 127.0.0.1:40848
15475:M 18 May 15:55:49.327 # User requested shutdown...
15475:M 18 May 15:55:49.327 * Saving the final RDB snapshot before exiting.
15475:M 18 May 15:55:49.337 * DB saved on disk
15475:M 18 May 15:55:49.337 * Removing the pid file.
15475:M 18 May 15:55:49.337 # Redis is now ready to exit, bye bye...
[root@AY1304091753101 init.d]#

可以看到redis-server刚启动就收到的来自127.0.0.1:40848的shutdown请求...
请问这是怎么回事啊?
pid在退出时已经没有了。。。

展开
收起
sessos 2018-05-18 16:04:35 3650 0
1 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。

    题主您好,

    这是比较奇怪,当时,是哪个程序或服务使用40848端口呢?

    是来自web程序的请求,自动关闭redis-server?

    2019-07-17 22:26:37
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Redis集群演化的心路历程——从2.x到3.0时代 立即下载
微博的Redis定制之路 立即下载
云数据库Redis版的开源之路 立即下载