使用Jedis連接redis,阿里雲開發端開,linux打開防火牆

1.Linux下的redis.conf配置文件中將bind 127.0.0.1註釋掉,而且將protected-mode yes 改爲 no。 2.linux先開啓防火牆,再開啓6379端口。 #開啓6379端口 firewall-cmd --zone=public --add-port=6379/tcp --permanent 3.阿里雲服務器開放6379端開 4.Jedis可以ping通red
相關文章
相關標籤/搜索