1、registry服务pom增加security依赖
2、registry 配置文件 指定security账号密码
3、http://账号:密码@IP:PORT/eureka/
4、重启
参考:Linux(Centos7)操作记录