Reputation: 41
Two instance located in the same VPC and subnet
port in redis instance security group:
in /etc/redis/redis.conf bind 0.0.0.0 but when
import { createClient } from 'redis';
const host = 'ec2-some-digits.compute-1.amazonaws.com ';
const port = 6379; // Default Redis port
const client = createClient({ host, port });
i received
sudo ufw status
Status: inactive
Upvotes: 0
Views: 103
Reputation: 41
the reason in nodejs instance: instead of
you should use:
Upvotes: 1