将 redis 与外部托管的 Mysql 结合使用

将 redis 与外部托管的 Mysql 结合使用

我有一台基于 Apache2 (aws ec2) 的服务器,刚刚安装了 Redis。但是当我尝试启动 Redis 时,出现以下错误,不知道如何修复它以便启动 Redis?我认为这是因为服务器上没有安装 Mysql,因为我使用外部 Mysql 数据库 (aws rds)。那么应该在 ec2 上专门为 redis 安装 mysql 还是我应该/如何安装 Redis 以使用我的外部托管 mysql?

 oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=3154, just started
 3154:C 14 May 13:20:26.937 # Configuration loaded
 3154:C 14 May 13:20:26.937 # systemd supervision requested, but NOTIFY_SOCKET not found
 3154:M 14 May 13:20:26.937 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
 3154:M 14 May 13:20:26.937 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
 3154:M 14 May 13:20:26.937 # 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'.

 3154:M 14 May 13:20:26.938 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
 3154:M 14 May 13:20:26.938 # Server initialized
 3154:M 14 May 13:20:26.938 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sy
 3154:M 14 May 13:20:26.938 * DB loaded from disk: 0.000 seconds
 3154:M 14 May 13:20:26.938 * Ready to accept connections

相关内容