Cov txheej txheem:

Kuv yuav teeb tsa lub koom haum consul li cas?
Kuv yuav teeb tsa lub koom haum consul li cas?

Video: Kuv yuav teeb tsa lub koom haum consul li cas?

Video: Kuv yuav teeb tsa lub koom haum consul li cas?
Video: Txiv tshiab muab ntxhais txi nyiaj p2 11/18/2018 2024, Hlis ntuj nqeg
Anonim

Nruab & Configure Consul Agent ntawm Client Hom

  1. Kauj ruam 1: Hloov cov pob repositories thiab nruab unzip.
  2. Kauj ruam 2: Lub taub hau mus rau consul downloads nplooj.
  3. Kauj ruam 3: Download tau tus consul binary rau /opt directory.
  4. Kauj ruam 4: Unzip consul binary.
  5. Kauj ruam 5: Txav mus rau consul executable rau / usr / bin directory kom nkag mus tau thoob plaws lub system.

Yog li, kuv yuav teeb tsa consul li cas?

Nruab & Configure Consul Agent ntawm Client hom

  1. Kauj ruam 1: Hloov cov pob repositories thiab nruab unzip.
  2. Kauj ruam 2: Lub taub hau mus rau consul downloads nplooj.
  3. Kauj ruam 3: Download tau tus consul binary rau /opt directory.
  4. Kauj ruam 4: Unzip consul binary.
  5. Kauj ruam 5: Txav mus rau consul executable rau / usr / bin directory kom nkag mus tau thoob plaws lub system.

Ib tug kuj yuav nug, koj yuav pib lub qhov rais consul li cas? Khiav Consul Raws li Kev Pabcuam Koj muaj ob txoj kev xaiv rau pib kev pabcuam. Thawj qhov kev xaiv yog siv lub Qhov rai Service Manager, thiab nrhiav Consul nyob rau hauv lub npe kev pab cuam. Nyem qhov pib khawm rau pib kev pabcuam. Qhov kev xaiv thib ob yog siv cov lus txib sc.

Ntawm no, tus neeg sawv cev consul yog dab tsi?

Cov Tus neeg saib xyuas Consul yog cov txheej txheem tseem ceeb ntawm Consul . Cov tus neeg sawv cev tuav cov ntaub ntawv ua tswv cuab, sau npe cov kev pabcuam, sau cov tshev, teb cov lus nug, thiab lwm yam. Cov tus neeg sawv cev yuav tsum khiav ntawm txhua qhov node uas yog ib feem ntawm a Consul pawg. Ib qho tus neeg sawv cev tuaj yeem khiav hauv ib qho ntawm ob hom: tus neeg siv khoom lossis server.

Kuv yuav nrhiav tau ib tus thawj coj hauv Consul li cas?

Cov Consul HTTP API khiav ntawm ib qho twg Consul Server yuav qhia koj tias Server yog tus twg tus thawj coj ntawm $ANY_CONSUL_SERVER/v1/status/ tus thawj coj . Txawm li cas los xij, qhov no tsis muaj dab tsi ua li cas Consul Cov neeg ua haujlwm ua tus thawj coj kev xaiv tsa. Qhov no yuav rov qab tam sim no tus thawj coj . Ces xwb kuaj tus IP chaw nyob rov qab tawm tsam tus IP chaw nyob.

Pom zoo: