荣耀彩票代理

IT技术互动交流平台

微服务架构:Eureka集群搭建

作者:风中程序猿  来源:IT165收集  发布日期:2016-12-16 20:35:24

BANQUANSHENGMING:BENWENWEIBOZHUYUANCHUANGWENZHANG,ZHUANZAIQINGZHUMINGCHUCHU,HUANYINGJIAOLIUXUEXI!

      FUWUZHUCE、FAXIANSHIWEIFUWUJIAGOUDEGUANJIANYUANLIZHIYI,YOUYUWEIFUWUJIAGOUSHIYOUYIXILIEZHIZEDANYIDEXILIDUFUWUGOUCHENGDEWANGZHUANGJIEGOU,FUWUZHIJIANTONGGUOQINGLIANGJIZHIJINXINGTONGXIN,ZHEIJIUBIRANYINRUYIGEFUWUZHUCEFAXIANDEWENTI,YEJIUSHISHUOFUWUTIGONGFANGYAOZHUCEBAOGAOFUWUDIZHI,FUWUDIAOYONGFANGYAONENGFAXIANMUBIAOFUWU。ZAIWOMENDEWEIFUWUJIAGOUZHONGWOMENCAIYONGLEEurekaLAIWANCHENGWEIFUWUDEZHUCEYUFAXIAN。WEIFUWUTONGGUOEurekaJINXINGZHUCE,FUWUDIAOYONGFANGTONGGUOEurekaZHAODAOMUBIAOFUWU。YOUYUFUWUTIGONGFANGYIJIQUNFANGSHITIGONGFUWU,EurekaYECAIYONGJIQUNDEFANGSHILAITIGONGFUWUDEZHUCEYUFAXIAN,JIQUNZHONGDEEurekaSHILIZHIJIANKEYIJINXINGSHUJUTONGBU,SUOYOUEurekaSHILIZHONGDEFUWUZHUCEXINXIDOUSHITONGBUDE。NEIMEWENTILAILE,EurekaJIQUNZHONGDESHILIZENMEZHIDAOQITASHILIDECUNZAINI,ZENMELAIFAXIANQITADESHILINI?TONGCHANGDEZUOFASHITONGGUODNS,YINCIWOMENXUYAODAJIANDNSFUWUQI。XIAMIANLAIJIESHAOEurakaJIQUNDEDAJIANGUOCHENG。

     一、搭建DNS服务器(Linux环境下)

     1、ANZHUANGDNSFUWUQIZUJIAN,ZHEILIWOMENYONGDESHIbind

         MINGLING:yum install -y bind bind-chroot bind-utils

     2、BIANJIPEIZHIDNSZHUPEIZHIWENJIAN

荣耀彩票代理         MINGLING:vi  /etc/named.conf

         

荣耀彩票代理    3、XIUGAInamed.rfc1912.zonesWENJIAN

荣耀彩票代理    MINGLING: vi  /etc/named.rfc1912.zones

        TIANJIASUOXUYAODEzone

        

     4、TIANJIASHEZHIDNSZHENGXIANGJIEXI

         XIUGAIzonePEIZHIWENJIAN,ZHENGXIANGJIEXI

荣耀彩票代理         MINGLING:cd  /var/named/

                 cp named.localhost eureka.com.zone 

                 vi eureka.com.zone

荣耀彩票代理         ZHUYI:YAOHEZHUPEIZHIWENJIAN[/etc/named.rfc1912.zones]LIMIANDINGYIDEzoneWENJIANMINGYIZHI

        

荣耀彩票代理     5、QIDONGDNSFUWUQI

荣耀彩票代理           MINGLING:service named start

     6、CESHIJIANCEYUXINXISHIFOUZHENGCHANG

荣耀彩票代理    JIANCHAZHIQIANXIANKANXIAPEIZHIWENJIANYOUMEIYOUDUQUQUANXIAN

    MINGLING:ll /var/named

       

荣耀彩票代理       RUGUOMEIYOUDUQUQUANXIAN,YONGchmod +r /var/named/* MINGLINGTIANJIAJIKE

       

荣耀彩票代理     7、ZHONGXINQIDONGDNSFUWUQI

荣耀彩票代理         MINGLING:service named restart

     8、DNSFUWUQIDIZHIPEIZHI

         DIYIZHONGFANGSHI:CIFANGSHISHIZANSHIXIUGAIdnsDIZHI,DANGWANGLUOZHONGQIZHIHOU,ZEZIDONGQINGCHU。

 

         MINGLING:vi  /etc/resolv.conf

 

      

      DIERZHONGFANGSHI:CIFANGSHISHIYONGJIUXIUGAIdnsDIZHI,DANGWANGLUOZHONGQIZHIHOU,BUHUIQINGCHU。

    MINGLING:vi   /etc/sysconfig/network-scripts/ifcfg-enp0s25

        

     ER、JIANGeurekaDEdnsPEIZHIFANGZAIjarBAOWAIMIANQIDONGWEIFUWU

 

          docker MINGLING:docker run –e eurekaServerDNSName=YUMING JINGXIANG

荣耀彩票代理     SAN、EUREKAJIQUNPEIZHI

           BIANXIEEureka PEIZHIWENJIAN(application.yml)

            

 

            QIZHONG eureka DEPEIZHIFENWEIclient DUANHEserver DUAN:

            Eureka clientPEIZHIZHONG,eurekaServerURLContext: eureka BIAOSHIeurekaZHUCEZHONGXINDELUJING,MORENWEIhttp://x.x.x.x:x/eureka/,ZAIeurekaDEPEIZHIWENJIANZHONGJIARUCIPEIZHIBIAO

    SHIeurekaZUOWEIKEHUDUANXIANGZHUCEZHONGXINZHUCE,CONGERGOUCHENGeurekaJIQUN。

    Eureka server PEIZHIZHONG,enableSelfPreservation: falseBIAOSHIZAICIeurekaFUWUQIZHONGGUANBIZIWOBAOHUMOSHI,SUOWEIZIWOBAOHUMOSHISHIZHI,CHUXIANWANGLUOFENQU、eurekaZAIDUANSHIJIANNEIDIUSHIGUO

荣耀彩票代理    DUOKEHUDUANSHI,HUIJINRUZIWOBAOHUMOSHI,JIYIGEFUWUZHANGSHIJIANMEIYOUFASONGXINTIAO,eurekaYEBUHUIJIANGQISHANCHU。MORENWEItrue:

          

荣耀彩票代理         

     ZIWOBAOHUMOSHIMORENWEIKAIQI,ZHEIJIUSHEJIDAOYUZHIYINZI,MORENWEI0.85,ZHEIXIEZAIeurekaZHUJIEMIANSHANGKEYIKANCHU:

     

荣耀彩票代理     YUZHIBUNENGDAYUZUIXIAOZHI,FOUZEJIANGHUIJINRUZIWOBAOHUMOSHI。

荣耀彩票代理           YISHANGSHIeurekaJIQUNDEDAJIANGUOCHENG,ZAIDAJIANDEGUOCHENGZHONGCAIGUOHENDUOKENG,YEYOUHENDUOSHOUHUO,eurekaXIANGGUANDEYIXIEPEIZHIXIANGJIUBUZAIZHEILIZHUISHULE,NEIRONGBIJIAODUO,YOUBIYAODEHUAWOZAILINGWAIDANDUJIESHAOZHEIBUFENNEIRONG。

Tag标签:      
  • 专题推荐

About IT165 - 广告服务 - 隐私声明 - 版权申明 - 免责条款 - 网站地图 - 网友投稿 - 联系方式
本站内容来自于互联网,仅供用于网络技术学习,学习中请遵循相关法律法规