Nginx configuration file yog dab tsi?
Nginx configuration file yog dab tsi?

Video: Nginx configuration file yog dab tsi?

Video: Nginx configuration file yog dab tsi?
Video: Learn Proper NGINX Configuration Context Logic 2024, Tej zaum
Anonim

Tag nrho NGINX configuration files nyob rau hauv /etc/ nginx ua / directory. Qhov tseem ceeb configuration file yog /etc/ nginx ua / nginx ua . conf . Kev teeb tsa kev xaiv hauv NGINX hu ua directives. Cov lus qhia raug teeb tsa rau hauv pawg hu ua blocks lossis cov ntsiab lus.

Raws li, Nginx yog dab tsi thiab nws ua haujlwm li cas?

NGINX yog lub web server uas tseem ua raws li email npe, rov qab tso npe, thiab thauj khoom sib npaug. Lub software tus qauv yog asynchronous thiab tshwm sim-tsav; uas ua rau kev ua tiav ntawm ntau qhov kev thov tib lub sijhawm. NGINX Nws yog qhov ua tau zoo heev, txhais tau hais tias nws cov kev pabcuam loj hlob nrog rau nws cov neeg siv khoom.

Kuv yuav qhib Nginx cov ntaub ntawv li cas? Txhawm rau nruab qhov qhib NGINX software, ua raws li cov kauj ruam no:

  1. Nkag mus rau koj lub davhlau ya nyob twg.
  2. Ntxiv tus yuam sij: $ sudo apt-key ntxiv nginx_signing.key.
  3. Hloov cov npe rau /etc/apt.
  4. Hloov kho NGINX software: $ sudo apt-tau hloov tshiab.
  5. Nruab NGINX: $ sudo apt-mus nruab nginx.
  6. Ntaus Y thaum nug.
  7. Pib NGINX: $ sudo kev pabcuam nginx pib.

Ib yam li ntawd, nginx conf D yog dab tsi?

conf . /etc/ nginx ua / conf . d /default. conf yog siv los teeb tsa lub neej ntawd virtual host. Rau qhov no koj tuaj yeem siv cov chaw-muaj thiab cov chaw-enabled. Koj tuaj yeem pom cov ntsiab lus ntxiv ntawm qhov nkag blog los ntawm cov dej hiav txwv digital Yuav Ua Li Cas Kho Qhov Nginx Web Server Ntawm Virtual Private Server.

Nginx config yog hom lus dab tsi?

C programming lus

Pom zoo: