在redis.conf文件中注释掉如下这行,让其他主机也可以连上redis:
bind 127.0.0.1 表示只允许本机连接redis
redis 配置允许其他主机可以远程连接redis
原创a772304419 ©著作权
©著作权归作者所有:来自51CTO博客作者a772304419的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
consul docker 跨主机 docker跨主机部署服务
一、前言 当我们开发好微服务之后,考虑到灵活快速持续部署的需要,通常会考虑将其Docker镜像化并在Docker环境下运行。由于微服务个数通常会较多,把所有微服务部署在一台docker主机上是不现实的,因此需要考虑到跨主机通信的问题,对实际部署必然会提出以下几点要求: 1. 微服务作为一个d
consul docker 跨主机 docker swarm java docker 微服务