宝塔面板开启外网访问redis

宝塔面板默认情况下是不开放redis的外网访问的,默认是绑定127.0.0.1,所以 需要我们手动配置,需要注释掉配置文件的71行,表示运行外网访问,否则本地项目访问的时候会提示链接被拒绝

 

63 
64 
65 
66 
67 
68 
69 
71 
2 
73 
74 
75 
76 
77 
78 
79 
80 
81 
82 
83 
84 
85 
Ctrl+F Ctrl+G Ctrl+S Ctrl+Shift+R 
following bind directive, that will force Redis to listen o: 
the IPv4 loopback interface address (this means Redis will 
accept connections only from clients running into the same • 
is running) . 
IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE 
JUST COMMENT THE FOLLOWING LINE . 
#bind 127.0.0.1 
IS a layer of security protection, in order 
Redis instances left open on the internet are accessed and 
When protected mode is on and if: 
1) The server is not binding explicitly to a set Of address. 
"bind" directive . 
2) NO password is configured. 
The server only accepts connections from clients connecting 
IPv4 and IPv6 loopback addresses 127.0.0.1 and : : 1, and fra 
sockets.

本文章由javascript技术分享原创和收集

发表评论 (审核通过后显示评论):