- 积分
 - 26
 
- 威望
 -  
 
- 金钱
 -  
 
- 注册时间
 - 2019-12-20
 
- 在线时间
 -  小时
 
- 最后登录
 - 1970-1-1
 
 
 
 
 
 
 | 
 
安装的是默认的 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... 
 
重启后就关闭了服务,不知道是哪里的问题,每次重启后要手动启动还真是麻烦,希望军哥帮看下,谢谢! 
 
 |   
 
 
 
 |