Ali cloud centos7 redis server installation and configuration of remote connections

Set external network access

1. Edit redis.conf file vim redis.conf

The redis-service is set to a background service (no change yes)

Binding native to comment out

Close Protected Mode

2. redis open firewall port 6379

 iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 6379 -j ACCEPT

 service iptables save # save iptables rules

 View iptables -nvL # iptables rules table

After modifying kill the process, restart the service.

3. Add Ali cloud security group rules, open port 6379

 

Guess you like

Origin www.cnblogs.com/lzghyh/p/12503378.html
Recommended