使用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
相关文章
相关标签/搜索