The newly opened port of redis cannot be accessed normally from other machines (telnet fails)

The newly opened port of redis cannot be accessed normally from other machines (telnet fails)

 

netstat -an | grep custom port 

tcp 0 0 127.0.0.1:custom port 0.0.0.0:* LISTEN  

 

127.0.0.1 This needs to be modified from the redis configuration file

 

redis.conf

# IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES

# JUST COMMENT THE FOLLOWING LINE.

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#bind 127.0.0.1

 

Just comment out bind 127.0.0.1

 

restart redis

Take another look at netstat -an | grep custom port 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326920094&siteId=291194637