具體步驟如下:
首先打開(kāi)redis.conf配置文件
vi?redis.conf
然后將bind 127.0.0.1 修改為 0.0.0.0
接著執(zhí)行命令:
1、/sbin/iptables -I INPUT -p tcp –dport 6379 -j ACCEPT
2、/etc/init.d/iptables save
3、service iptables restart
4、驗(yàn)證:telnet ip 6379
相關(guān)推薦:redis數(shù)據(jù)庫(kù)教程
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載。
THE END
喜歡就支持一下吧
相關(guān)推薦