Open Redis port for remote connections

后端 未结 10 2047
隐瞒了意图╮
隐瞒了意图╮ 2020-12-07 10:00

I can ping pong Redis on the server:

# redis-cli ping
PONG

But remotely, I got problems:

$ src/redis-cli -h REMOTE.IP ping
         


        
10条回答
  •  天涯浪人
    2020-12-07 10:56

    For me, I needed to do the following:

    1- Comment out bind 127.0.0.1

    2- Change protected-mode to no

    3- Protect my server with iptables (https://www.digitalocean.com/community/tutorials/how-to-implement-a-basic-firewall-template-with-iptables-on-ubuntu-14-04)

提交回复
热议问题