Cov txheej txheem:

Koj puas xav tau nginx nrog Docker?
Koj puas xav tau nginx nrog Docker?

Video: Koj puas xav tau nginx nrog Docker?

Video: Koj puas xav tau nginx nrog Docker?
Video: Koj Puas Xav Tau Vajtswv Nqi Zog Instrumental 2024, Hlis ntuj nqeg
Anonim

1 Teb. Yog li kuv yuav hais tsis muaj koj yuav tsum tsis nruab nginx ua raws li tus neeg sawv cev rov qab ncaj qha rau koj docker host ncaj qha thiab yog koj yuav tsum nruab nginx ua nyob rau hauv koj lub thawv (s) yog koj xav cov yam ntxwv nginx ua muab.

Kuj nug, Kuv yuav siv nginx Docker li cas?

Khiav NGINX Qhib Qhov Chaw hauv Docker Thawv

  1. Tua tawm ib qho piv txwv ntawm NGINX khiav hauv lub thawv thiab siv lub neej ntawd NGINX teeb tsa nrog cov lus txib hauv qab no: $ docker khiav --name mynginx1 -p 80:80 -d nginx.
  2. Xyuas kom tseeb tias lub thawv tau tsim thiab ua haujlwm nrog docker ps hais kom ua:

Ib sab saum toj no, Nginx siv rau dab tsi? NGINX yog qhib qhov software rau kev pabcuam hauv web, thim rov qab proxying, caching, load balancing, media streaming, thiab ntau dua. Nws pib ua lub web server tsim los rau kev ua haujlwm siab tshaj plaws thiab ruaj khov.

Ib sab saum toj no, Nginx thawv yog dab tsi?

Nginx (hais tias "cav-x") yog qhov qhib qhov rov qab tso npe neeg rau zaub mov rau HTTP, HTTPS, SMTP, POP3, thiab IMAP raws tu qauv, nrog rau cov khoom sib npaug, HTTP cache, thiab lub vev xaib server (keeb kwm server). Cov nginx ua qhov project pib nrog kev tsom mus rau kev sib koom ua ke siab, kev ua haujlwm siab thiab kev siv lub cim xeeb tsawg.

Thaum twg kuv yuav tsum siv Docker?

  1. Siv Docker ua qhov kev tswj hwm version rau koj tag nrho app lub operating system.
  2. Siv Docker thaum koj xav faib / koom tes ntawm koj lub app lub operating system nrog pab pawg.
  3. Siv Docker khiav koj cov cai ntawm koj lub laptop hauv tib qhov chaw raws li koj muaj ntawm koj lub server (sim lub cuab yeej)

Pom zoo: