VPS侦探论坛

 找回密码
 注册
查看: 3769|回复: 1

LNMP 1.8 重启后redis就会连不上

[复制链接]
发表于 2021-6-10 08:19:02 | 显示全部楼层 |阅读模式

安装的是默认的 redis 6.2.3 版本,后面发现重启后会连不上,修改了 redis.conf 开启日志,如下:

8901:C 10 Jun 2021 07:03:21.987 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
8901:C 10 Jun 2021 07:03:21.987 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=8901, just started
8901:C 10 Jun 2021 07:03:21.987 # Configuration loaded
8901:M 10 Jun 2021 07:03:21.993 * Increased maximum number of open files to 10032 (it was originally set to 1024).
8901:M 10 Jun 2021 07:03:21.993 * monotonic clock: POSIX clock_gettime
8901:M 10 Jun 2021 07:03:21.996 * Running mode=standalone, port=6379.
8901:M 10 Jun 2021 07:03:21.996 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
8901:M 10 Jun 2021 07:03:21.996 # Server initialized
8901:M 10 Jun 2021 07:03:21.996 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
8901:M 10 Jun 2021 07:03:21.998 * Loading RDB produced by version 6.2.3
8901:M 10 Jun 2021 07:03:21.998 * RDB age 1271 seconds
8901:M 10 Jun 2021 07:03:21.998 * RDB memory usage when created 1.49 Mb
8901:M 10 Jun 2021 07:03:22.003 * DB loaded from disk: 0.006 seconds
8901:M 10 Jun 2021 07:03:22.003 * Ready to accept connections
8901:signal-handler (1623280286) Received SIGTERM scheduling shutdown...
8901:M 10 Jun 2021 07:11:26.982 # User requested shutdown...
8901:M 10 Jun 2021 07:11:26.982 * Saving the final RDB snapshot before exiting.
8901:M 10 Jun 2021 07:11:27.061 * DB saved on disk
8901:M 10 Jun 2021 07:11:27.061 * Removing the pid file.
8901:M 10 Jun 2021 07:11:27.061 # Redis is now ready to exit, bye bye...

重启后就关闭了服务,不知道是哪里的问题,每次重启后要手动启动还真是麻烦,希望军哥帮看下,谢谢!

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2021-6-10 09:34:28 | 显示全部楼层


在论坛翻到这个帖子 ./addons.sh 安装的应用没有开机启动  里面有说重新下载lnmp包,重装后已经解决
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-24 16:42 , Processed in 0.025050 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表