1、参考文档:
https://www.centoscn.vip/4317.html
2、剔除服务
格式:
curl -X PUT "http://ip:port/eureka/apps/{application}/{instance}/status?value=OUT_OF_SERVICE"
示例:
curl -X PUT "http://192.168.133.98:8761/eureka/apps/GENIE-ORDER-SERVICE/192.168.133.98:genie-order-service:8092/status?value=OUT_OF_SERVICE"
3、启动服务
格式:
curl -X PUT "http://10.0.0.106:8001/eureka/apps/{USER-API}/{iZ2zed99h19kmb7fgbjcghZ:user-api:8129}/status?value=UP"
示例:
curl -X PUT "http://192.168.133.98:8761/eureka/apps/GENIE-ORDER-SERVICE/192.168.133.98:genie-order-service:8092/status?value=up"