Yuav Ua Li Cas Thiaj Paub Apache Version

Cov txheej txheem:

Yuav Ua Li Cas Thiaj Paub Apache Version
Yuav Ua Li Cas Thiaj Paub Apache Version

Video: Yuav Ua Li Cas Thiaj Paub Apache Version

Video: Yuav Ua Li Cas Thiaj Paub Apache Version
Video: Yuav ua cas thiaj paub tias "Nws Hlub Koj" 2024, Hlis ntuj nqeg
Anonim

Apache yog qhov nrov tshaj plaws thiab siv dav siv HTTP server nyob hauv lub ntiaj teb niaj hnub no. Feem ntau, 2.x version ntawm cov khoom siv no yog siv. Lawv cov haujlwm tsis txawv. Txawm li cas los xij, qee zaum koj tseem yuav tsum nrhiav cov version ntawm apache khiav ntawm lub tshuab tshwj xeeb.

Yuav ua li cas thiaj paub apache version
Yuav ua li cas thiaj paub apache version

Nws yog qhov tsim nyog

  • - browser;
  • - Tus neeg siv SSH lossis lub cev nkag mus rau lub tshuab nrog apache;
  • - nkag mus rau lub hom phiaj tshuab ntawm

Cov Lus Qhia

Kauj ruam 1

Pib npaj nrhiav kom paub koj apache version los ntawm kev khiav nws cov haujlwm. Yog tias tus neeg rau zaub mov rau ntawm lub tshuab hauv cheeb tsam, khau raj lub plhaub, lub davhlau ya davhlau emulator, lossis hloov mus rau cov ntawv ntsuas. Thaum ua haujlwm nyob rau hauv operating systems ntawm Windows tsev neeg, nyem rau ntawm "Pib" khawm hauv lub luag haujlwm, xaiv "Khiav", nkag cmd thiab nyem OK. Hauv Linux-zoo li cov tshuab, nias Alt + F1-Alt + F12 lossis Ctrl + Alt + F1- Ctrl + Alt + F12 txhawm rau nkag console nkag, lossis pib lub davhlau ya nyob twg emulator xws li Konsole, XTerm, thiab lwm yam. Yog tias apache koj xav kuaj xyuas yog ntsia tau rau lub computer deb, txuas rau nws ntawm ssh. Siv PuTTY rau ntawm lub Windows thiab ssh console tus thov ntawm Linux zoo li cov tshuab

Kauj ruam 2

Tshawb nrhiav koj lub apache version los ntawm kev khiav lub server ua tiav nrog -v lossis -V xaiv. Hauv thawj kis, tsuas yog cov ntaub ntawv hais txog cov version thiab hnub tsim tsa yuav raug tso tawm, hauv lub thib ob cov ntaub ntawv ntxiv yuav ntxiv rau nws (cov lus piav qhia txog architecture, cov npe ntawm cov lus qhia ua ntej tau siv thaum sib sau, thiab lwm yam. Tus hu ua apache yog lub npe hu ua httpd lossis httpd2 nyob ntawm seb cov kab khoom twg nws yog (1.x lossis 2.x). Cov khoos phis tawm Apache 1.x tsis tshua muaj hnub no. Yog li, feem ntau koj tuaj yeem paub nws cov version los ntawm kev khiav qhov hais kom ua hauv lub console: httpd2 -v Yog tias tsis pom httpd2 qhov muag pom, hais kom tas txoj hauv kev rau nws

Kauj ruam 3

Sim nrhiav kom paub qhov version ntawm apache los ntawm hu rau phpinfo ua haujlwm los ntawm cov ntawv sau hauv php thiab khiav hauv qab kev tswj hwm ntawm tus neeg rau zaub mov. Tsim cov ntawv sau server nrog cov ntsiab lus hauv qab no: Muab nws tso rau hauv ib qho ntawm cov ntawv sau npe ua haujlwm los ntawm cov neeg rau zaub mov thiab siv tau ntawm HTTP. Pib apache yog tias xav tau. Qhib qhov chaw nyob sib haum rau tsab ntawv hauv lub qhov rai browser. Yog tias tus neeg rau zaub mov tau teeb tsa los ua haujlwm nrog PHP, thiab kev siv phpinfo ua haujlwm tsis raug txwv hauv php.ini teeb tsa cov ntaub ntawv, ib daim ntawv HTML yuav tshwm rau hauv qhov browser. Nrhiav ntu apache2handler hauv nws. Nrhiav kom paub tus neeg rau zaub mov version

Kauj ruam 4

Sim nrhiav kom paub koj lub apache version los ntawm cov ntaub ntawv muab ntawm nplooj ntawv yuam kev. Txhawm rau ua qhov no, qhib qhov URL ntawm qhov browser, hais txog lub tshuab uas tus neeg rau zaub mov raug ntsia, los ntawm nws tus IP chaw nyob thiab ntxiv lub npe ntawm cov ntaub ntawv uas tsis muaj. Lub sijhawm pib apache 404 kev ua yuam kev nplooj ntawv zoo li yuav pom tshwm. Nws yuav muaj feem ntau pom cov neeg rau zaub mov version.

Pom zoo: