Cov txheej txheem:

Qhov chaw nres nkoj twg siv apache2?
Qhov chaw nres nkoj twg siv apache2?

Video: Qhov chaw nres nkoj twg siv apache2?

Video: Qhov chaw nres nkoj twg siv apache2?
Video: Kev hlub tsis ncaj ncees.10/15/2017 2024, Tej zaum
Anonim

nqa 80

Ua raws li qhov xav tau, Kuv yuav ua li cas thiaj li khiav Apache ntawm qhov chaw nres nkoj sib txawv?

Hloov Apache default chaw nres nkoj mus rau qhov chaw nres nkoj kev cai

  1. Hloov Apache chaw nres nkoj ntawm Debian / Ubuntu. Kho kom raug /etc/apache2/ports.conf cov ntaub ntawv, $ sudo vi /etc/apache2/ports.conf. Nrhiav cov kab hauv qab no: Mloog 80.
  2. Hloov Apache chaw nres nkoj ntawm RHEL/CentOS. Nco ntsoov tias koj tau nruab Apache webserver ua ntej.

Ib tug kuj yuav nug, qhov twg yog cov ntaub ntawv apache2 config? Ntawm cov tshuab feem ntau yog tias koj tau nruab Apache nrog tus thawj tswj pob, lossis nws tuaj ua ntej, Apache teeb tsa cov ntaub ntawv nyob hauv ib qho ntawm cov chaw no:

  • /etc/apache2/httpd. conf.
  • /etc/apache2/apache2. conf.
  • /etc/httpd/httpd. conf.
  • /etc/httpd/conf/httpd. conf.

Tsis tas li ntawd, kuv yuav ua li cas thiaj tau Apache mloog ntawm chaw nres nkoj 8080?

Configure Apache Lub Vev Xaib kom Siv Ntau Qhov Chaw

  1. Cov ntsiab lus: Hauv kuv qhov piv txwv, kuv tau khiav Apache ntawm Chaw nres nkoj 80 ntawm ib tus IP.
  2. Kauj ruam 1: Qhib Apache configuration File httpd.conf (ntawm kuv lub qhov rais host, nws nyob ntawm no: "c: Program FilesApache GroupApache2conf")
  3. Kauj ruam 2: Nrhiav kab: Mloog 80 thiab ntaus Mloog 8080 ntawm kab tom ntej:

Tus naj npawb chaw nres nkoj twg yog 8080?

GRC | Chaw nres nkoj Txoj cai, rau Internet Chaw nres nkoj 8080 . Description: Qhov no chaw nres nkoj yog ib tug nrov lwm txoj rau chaw nres nkoj 80 rau muab kev pabcuam web. " 8080 " tau xaiv txij li nws yog "ob 80's", thiab kuj vim tias nws yog siab tshaj qhov txwv tsis pub muaj kev paub zoo chaw nres nkoj ntau yam ( chaw nres nkoj 1-1023, saib hauv qab no).

Pom zoo: