一、通过security增加账号密码登录 1、registry服务pom增加security依赖 2、registry 配置文件 指定security账号密码 3、http://账号:密码@IP:PORT/eureka/ 4、重启 二、关闭节点 三、防火墙移除eureka端口访问 参考:Linux(Centos7)操作记录