Yuav teeb tsa lub web server thiab host lub vev xaib ntawm GNU / Linux li cas

Web url

Yog tias koj tau xav dua qee yam cov kev pab cuam hosting uas muaj nyob hauv lub network tuaj yeem tswj hwm lub vev xaib lossis dab tsi yog lub web server thiab nws ua haujlwm li cas, nrog rau cov kab ntawv uas tshwm hauv qhov URL ntawm qee cov nplooj ntawv web, yuav ua li cas tus neeg siv tuaj yeem txuas rau lub vev xaib nyob deb, thiab lwm yam. Kab lus no los qhia rau koj kom koj paub. Kuv yuav qhia koj tsis tsuas yog lub ntsiab lus ntawm dab tsi yog ib tug neeg rau zaub mov, koj tseem yuav paub yuav ua li cas los tsim koj tus kheej lub web server kauj ruam yog kauj ruam ua tsaug rau peb cov lus qhia yooj yim.

Niaj hnub no peb txhua tus siv cov chaw taws teeb kev pab cuam ntawm txhua yam, kuj ntawm huab huab loj hlob, tab sis yog tias muaj kev pabcuam uas sawv siab tshaj qhov so, tej zaum nws yog qhov lawv muab web servers, txij li muaj ntau tons cov vev xaib uas peb niaj hnub tuaj xyuas peb cov xov xwm uas peb nyiam, xyuas cov email los ntawm cov vev xaib uas muab qee cov kev pabcuam xws li GMail, ua lag luam, ua haujlwm, ua yuav khoom hauv online, thiab lwm yam. Tsis muaj leej twg khiav tawm ntawm cov kev pabcuam no, txoj cai? Txawm li cas los xij, rau ntau ntawm nws cov neeg siv lawv nyob twj ywm tsis paub hais tias yog dab tsi cov lus dag tom qab lawv ...

Dab tsi yog qhov server?

Neeg rau zaub mov ua liaj ua teb

Qee cov neeg siv xav tias ib tug neeg rau zaub mov yog qee yam tshwj xeeb, tej yam txawv heev ntawm qhov nws yog dab tsi tiag. Tab sis hais hauv cov lus yooj yooj yim, neeg rau zaub mov tsis muaj dab tsi ntau dua li lub koos pij tawj zoo li qhov peb tuaj yeem muaj nyob hauv peb lub tsev, tsuas yog hais tias es tsis txhob ua raws li tus neeg yuav khoom, nws ua nws yog qhov server, uas yog, nws yog muab kev pabcuam. Tej zaum koj yuav xav tias, qhov xwm txheej ntawd, vim li cas cov duab uas peb pom hauv TV lossis lwm yam xov xwm thaum cov servers tawm tau yog li tsawg ...

Zoo, cov duab zoo li ib qho kuv tau tuaj koom ntawm no yog cov duab ntawm server liaj tebCov. Qhov no yog lub npe muab rau cov kab ke sib txuas ntawm cov computers uas ua hauj lwm ua ke ua ib leeg. Nco ntsoov tias cov kev pabcuam uas cov servers feem ntau muab yog npaj rau ntau pua, txhiab lossis lab tus neeg siv uas coj ua cov neeg siv khoom ntawm lawv cov khoos phis tawj, smartphones, ntsiav tshuaj, TVs ntse, thiab lwm yam. Yog li ntawd, qhov muaj peev xwm uas lawv yuav tsum coj yog ntau dua li cov ntawm lub koos pij tawj hauv tsev.

Koj tsuas yog yuav tsum xav txog cov kev pabcuam xws li Twitter, pes tsawg lab ntawm cov neeg siv lub vev xaib social network no, muaj pes tsawg cov ntaub ntawv thiab cov lus xa mus txhua ob. Yog tias koj xav txog nws, nws yog a loj npaum li cas ntawm cov ntaub ntawvYog li ntawd, nws tsis siv nrog qhov zoo sib xws uas peb muaj hauv tsev thiab lub computer qub. Kev sib txuas ceev heev yog qhov xav tau kom tsis muaj kev ncua nyob rau hauv kev nkag mus ntawm txhua tus neeg siv, thiab muab nws lub peev xwm tsim nyog kom lawv tuaj yeem tuav tag nrho cov ntaub ntawv ntawd.

Nrog no kuv txhais li cas yog tias rau qhov kev pab no kaum ob lossis ntau pua tus "computers" tau siv zoo li cov uas peb tuaj yeem siv hauv tsev uas tau muab tso rau hauv cov tub rog nrog cov racks. Tab sis hauv qhov tseem ceeb, txhua tus ntawm lawv tsis nyob deb ntawm lub tshuab computer zoo ib yam li peb muaj hauv peb lub tsev. Tej zaum qee tus muaj cov microprocessors tshwj xeeb xws li AMD EPYC, Intel Xeon, thiab lwm yam, tej zaum lawv tseem muaj ntau lub hard drive uas tau teeb raws li RAID kom tsis txhob muaj yog tias ib qho ntawm lawv ua tsis tiav, cov ntaub ntawv yuav ploj, tab sis raws li kuv hais, nco ntsoov tias lawv yog khoos phis tawj zoo li tias koj tswj hwm txoj cai tam sim no, thiab kuv yuav qhia koj qhov no vim tias tam sim no kuv yuav piav qhia rau koj tias yuav ua li cas koj lub PC hloov mus ua tus neeg rau zaub mov ...

Ntawm cov no servers yog ntau yam, muaj cov uas muab kev pabcuam huab, xws li kev cia khoom, muaj cov uas muab kev pabcuam email, web servers, kuj qee yam uas tsuas yog kev pabcuam xws li DNS, NTP, DHCP, LDAP, thiab lwm yam, uas yog, txhua tus tom kawg yog heev tsim nyog thiab muaj tseeb koj siv lawv txhua hnub tsis txawm paub txog nws, vim tias lawv yog cov kev pabcuam uas qee ISP (Tus pabcuam hauv Is Taws Nem) lossis cov muab kev pabcuam hauv Is Taws Nem muab rau peb.

Dab tsi yog lub web page?

Lub Vev xaib ntawm cov khoom siv sib txawv

Peb tau hais ua ntej tias qee lub vev xaib, lawv muab hosting lossis qhia rau nplooj ntawv webCov. Lub vev xaib yog txheej hluav taws xob lossis digital cov ntaub ntawv (HTML, PHP, CSS, ...) uas tuaj yeem tsuas muaj cov ntawv sau xwb, lossis tseem muaj lwm cov ntsiab lus xws li web apps sau nyob hauv qee yam tshwj xeeb cov lus lossis sau ntawv (Perl, JavaScript, Ruby nrog rau RoR lossis Ruby on Rails moj khaum, PHP, thiab lwm yam), cov ntsiab lus multimedia (duab, yeeb yaj duab, suab, thiab lwm yam), thiab cov ntawv sib txuas uas feem ntau coj koj mus rau lwm qhov chaw ntawm tib lub vev xaib no lossis mus rau lwm qhov.

Thiab kom qhov no ua tau peb muaj cov web servers uas tswj hwm lawv, uas yog, nws khaws tag nrho cov ntaub ntawv no ntawm nws lub hard drive, thiab tseem muaj cov txheej txheem ntawm cov network xws li HTTP (HyperText Hloov Raws Cai) thiab HTTPS (HTTP nrog SSL / TLS daim ntawv pov thawj kev nyab xeeb). Ib qho software yuav saib xyuas qhov no vim peb yuav qhia koj tom qab, uas yog, kom ua raws li ob-txoj kab txuas rau tus neeg siv khoom thiab nws tuaj yeem taug kev dhau los ntawm cov ntsiab lus hypertext, uas yog, txhais tau tias yuav qhia tawm, txuas thiab cuam tshuam nrog cov ntaub ntawv siv tau los hloov WWW (World Wide Web).

Nws ua hauj lwm li cas?

Cov neeg siv khoom sib txuas

Zoo, peb twb paub tias lub vev xaib thiab lub web server yog dab tsi, tau piav qhia hauv kuv tus kheej thiab nrog cov lus yooj yim kom ntau dua lossis tsawg dua txhua tus tuaj yeem nkag siab, txawm tias cov neeg uas tsis muaj kev paub txog cov thev naus laus zis no. Thiab tam sim no kuv txuas ntxiv nrog ntu no uas kuv yuav sim ua kom pom tseeb ntawm kev ua haujlwm ntawm cov neeg siv-tshuab hlwb hlauCov. Tab sis rau qhov no, ua ntej kuv yuav qhia qhov sib txawv ntawm ob:

  • Neeg: tus neeg siv khoom yog tus neeg siv uas nkag mus rau lub vev xaib los ntawm lawv cov cuab yeej, yog nws lub laptop, desktop, ntsiav tshuaj, smartphone, thiab lwm yam. Rau kev nkag mus, koj tsuas yog xav tau kev sib txuas hauv Is Taws Nem thiab lub vev xaib, ib qho software tseem ceeb ntawm cov neeg siv uas saib xyuas txhua qhov ntawm lub vev xaib nyob rau hauv kev siv kom zoo thiab pub rau tus neeg siv cuam tshuam nrog. Thiab rau qhov no peb tsuas xav tau qhov chaw nyob ntawm lub vev xaib lossis tus IP ..., txawm hais tias koj yuav xav tias qhov no tsis tas yuav nkag mus, txij li thaum muaj cov kev tshawb fawb (piv txwv: Google) uas, dhau ntawm cov ntsiab lus, tso cai los qhia cov vev xaib no uas muaj indexed, thiab koj ua yog lawm.
  • Neeg rau zaub mov: Raws li peb tau piav qhia, nws yuav muaj tag nrho cov ntaub ntawv thiab software uas ua raws li cov neeg rau zaub mov, uas yog, nws tso cai rau tus neeg siv sib txuas kom ua txhua yam lawv xav tau. Tus muaj web server yuav, piv txwv li, Apache, Lighttpd, thiab lwm yam.

Kuv xav taw tes rau lwm yam thiab, uas yog qhov koj paub zoo, IP chaw nyob Nws yog tus uas txheeb xyuas lub tshuab txuas nrog lub network, qhov no nws yuav yog tus IP ntawm lub web server. Muaj qee tus cov kev pab zoo li no uas qhia koj tus IP ntawm nplooj ntawv koj nyiam, piv txwv li, yog tias koj tshawb nrhiav google.es nws yuav qhia koj tus IP sib nug rau tus neeg rau zaub mov uas qhov kev pabcuam no tau tuav. Yog tias koj sim sau tus lej no rau hauv kab ntawv chaw nyob ntawm koj lub web browser, koj yuav pom tias ob qho tib si tso www.google.es thiab hais tias IP yuav qhia Google nyob rau hauv ob qho xwm txheej no.

Vim li cas kuv thiaj hais li no? Zoo vim nws pab kuv txuas rau DNS serversCov. Cov servers no yog lwm cov kev pabcuam uas muaj cov ntxhuav nrog cov npe ntawm lub vev xaib thiab lawv tus IP sib xws, yog li thaum ib tus neeg tshawb rau qhov chaw nyob ntawm lub npe thiab tsis siv tus IP, lub server yuav ua rau lub browser qhia cov ntsiab lus ntawm lub vev xaib. Qhov no ua tiav los ua kom nws nkag siab tau rau tib neeg. Peb tsis tuaj yeem nco tag nrho cov lej yooj yim, tab sis peb tuaj yeem nco ntsoov cov npe ntawm peb lub vev xaib uas peb nyiam, txoj cai?

Thiab kuv xaus ntawm specifying tus dab tsi URL (Chaw Nrhiav Kev Pab Uniform) lossis cov peev txheej nrhiav cov peev txheej, uas peb pom nyob rau sab saum toj ntawm kab ntawv ntawm peb tus browser thaum peb nkag mus rau lub vev xaib. Piv txwv li, xav txog tias koj rau npe sau myweb.es. Hauv qhov no, qhov ntawd yuav yog koj li thiab koj tuaj yeem siv nws los qhia koj lub vev xaib. Xav txog tias ib tug neeg nkag mus rau qhov chaw nyob http://www.miweb.es/info/inicio.html#web:

  • http://: Qhia tau tias peb nkag mus siv cov HTTP raws tu qauv, txawm hais tias nws tseem tuaj yeem yog HTTPS, FTP, thiab lwm yam. Tab sis qhov no nws yog thawj zaug, yog li ntawd nws yog lub vev xaib.
  • WWW: koj paub nws yog los ntawm World Wide Web.
  • miv .es: qhov no yog tus sau uas koj tau sau npe, uas yog, lub npe hloov tus IP ntawm lub server lossis tus tswv tsev uas muaj koj lub vev xaib. Yog li ntawd, nws yuav yog lub npe uas txheeb xyuas lub server lossis tshuab, tom qab tag nrho ... Ntxiv rau, nws muaj TLD (Top Theem Domain) uas qhov no yog .es, txhawm rau paub tias nws yog lub vev xaib los ntawm Spain, txawm hais tias nws yuav yog .se los ntawm Sweden, .com los ntawm tuam txhab, .org Lub Koom Haum, thiab lwm yam.
  • /info/inicio.html#web: qhov no tsuas txhais tias cov ntsiab lus no tau nkag mus, uas yog, cov ntaub ntawv cov ntsiab lus thiab nyob hauv nws yog home.html file nrog hypertext thiab tshwj xeeb ntu. webCov. Nws kuj tseem tuaj yeem yog daim duab, PDF, yees duab, thiab lwm yam. Raws li nws tshwm sim hauv koj cov ntaub ntawv tus thawj tswj hwm thaum koj mus rau ib txoj hauv kev ntawm koj lub hard drive hauv zos, txoj cai?

Kuv xav tias nrog qhov no nws muaj txaus lag luam ntshiab piav qhia hauv kev yooj yim.

Kev Qhia Ua Haujlwm: tsim koj tus kheej lub web server kauj ruam yog kauj ruam

Apache xeem web

Yog tias koj muaj a GNU / Linux faib yamKoj yuav tsum paub tias thaum koj tau kho koj lub network kom raug, vim tias koj tsis muaj lub zog IP, nws yuav tsum zoo li qub lossis tsis li nws yuav hloov nws tus nqi thiab nws yuav nyuaj rau nkag mus rau lub vev xaib. Ntxiv rau, koj yuav tsum them sai sai rau yog tias koj muaj lub thaiv hluav taws teeb nrog iptables lossis lwm cov software uas tsis muaj txoj cai txwv kev xa mus los ntawm chaw nres nkoj 80 lossis 8080, thiab lwm yam, zoo li yog tias koj muaj AppArmor lossis SELinux, lawv yuav tsum tso cai rau tus neeg siv los ua. web server daemon, qhov no Apache.

Cov kauj ruam tom ntej yog txhawm rau nruab software kom ua tiav peb lub web server, qhov no Apache thiab lwm cov pob khoom ntxiv los ua kom tiav LAMP, tab sis nws tuaj yeem muaj lwm qhov. Hauv kuv tsev neeg, los ntawm Debian:

sudo apt-get update

sudo apt-get install apache2
sudo service apache2 restart
sudo apt-get install mysql-server php5-mysql
mysql -u root
mysql -u root -p (sin no introdujiste el password durante la instalación)
sudo apt-get install php libapache2-mod-php5 php5-mycrypt
sudo apt-get install php5-sqlite

Tom qab ntawv koj tuaj yeem ua tau kho qee yam tsis los ntawm cov neeg rau zaub mov yog tias koj xav tau, lossis tej zaum yog tias nws tsis ua haujlwm thiab koj tau txais nplooj ntawv uas kuv qhia koj hauv daim duab dhau los, saib cov cav vim qee yam tau ploj lawm ... Los ntawm txoj kev, koj tuaj yeem pom nplooj ntawv ntawd los ntawm kev nkag mus rau koj lub web browser thiab teeb tsa lub localhost 127.0.0.1 .2 hauv qhov chaw nyob bar lossis IP zoo li qub uas koj tau teeb tsa rau koj lub server. Qhov chaw nres nkoj pheej yuav nyob hauv /etc/apacheXNUMX/ports.conf nyob rau hauv rooj plaub koj xav hloov lawv.

Yog tias koj xav tau koj tuaj yeem nruab lwm yam cov pob khoom ntxiv, Yog tias koj tseem npaj kom muaj lub tshuab xa ntawv, lossis qee lub teeb ua cim zoo li phpAdmin, thiab lwm yam.

Host koj lub vev xaib ntawm lub server

Kev tsim kho lub Vev Xaib

Thaum peb muaj peb lub server npaj txhij, nco ntsoov tias lub PC uas koj tau mob siab rau lub server yuav tsum nyob hauv thiab txuas nrog lub network kom lub vev xaib nkag mus tau los ntawm lwm cov khoom siv, txwv tsis pub lub server yuav "nqes". Tam sim no peb tsuas muaj tuav peb lub vev xaib, tias peb tuaj yeem tsim nws tus kheej siv HTML lossis lwm tus lej, lossis txawm tias siv CMS li WordPress uas ua rau ntau yam yooj yim dua rau peb thiab peb tuaj yeem tuav hauv tib qho chaw ...

Thiab rau qhov no peb yuav ua nws hauv qhov / var / www / html / phau ntawv qhia tias tshwj tsis yog peb tau hloov lub Apache configuration, nws yuav nyob ntawd qhov twg webs yog tuav. Piv txwv li, koj tuaj yeem ua qhov kev xeem me ntsis siv PHP los ntawm kev tsim cov ntawv nrog koj cov ntawv nyeem uas koj nyiam nrog cov ntsiab lus:

<?php phpinfo() ?>

Hu nws test.php thiab tam sim no, tom qab rov pib kho apache2 daemon, koj yuav tuaj yeem pom tias nws tuaj yeem nkag mus los ntawm qhov browser: 127.0.0.1/test.php.

Kuv vam tias qhov kev qhia no tau pab koj thiab koj tsawg kawg nkag siab zoo me ntsis li cas cov servers ua haujlwm, yog li tam sim no txhua zaus koj nkag mus hauv peb cov blog los nyeem cov ntawv xov xwm, koj paub txhua yam qab nws. Txhob nco txog koj lawm mog lus, tsis ntseeg, lossis cov lus qhia, ...


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

8 lus, tawm koj li

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm. Yuav tsum tau teb cov cim nrog *

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.

  1.   Pedro said

    Nyob zoo. Tsis txhob koj xav tias siv PHP 5 xyoo 2018 tsis muaj kev cuam tshuam?

  2.   Nia Taipe said

    Nyob zoo.
    Kuv yog tus pib thaum nws los rau servers.
    Qhov IP twg lub router tau ua tiav?
    Yam ip yuav tsum tau ua lub PC uas ua haujlwm zoo li tus neeg rau zaub mov muaj
    Apache siv ip dab tsi nws yuav tsum muaj?
    Yog pej xeem taag ip?

  3.   jucapopo ua said

    Pom zoo heev Noe Taipe
    Kuv tau tshawb nrhiav cov ntaub ntawv rau ob peb lub lis piam los teeb tsa lub Linux web server thiab hauv txhua qhov kev sib tham lawv tso «kev ua kom yuam kev" uas tsuas yog ua haujlwm rau sab hauv lossis hauv nroog network thiab kuv xav tias koj lub hom phiaj yog tuaj yeem tsim lub web server thiab tias ib tug neeg tuaj yeem pom koj txhua lub sijhawm hauv lwm qhov khoos phis tawm rau sab nraud koj lub network hauv lwm lub nroog, tebchaws, ...
    Kuv tau tswj hwm los ua lub web server pom nws hauv lub network sab nraud, qhov ntawd yog tias tsuas yog tso kuv tus IP pej xeem thiab qhib qhov chaw nres nkoj ntawm kuv lub modem router, Kuv tau nruab Bind9, kom tuaj yeem taw tes cov tswv yim tsim rau hauv kuv lub network sab hauv thiab tias nws ua haujlwm kom raug rau kuv lub network , tab sis kuv tsis tuaj yeem nrhiav cov ntaub ntawv hais txog yuav ua li cas tib yam dhau los ntawm Is Taws Nem thiab hais tias tib neeg tsis tso kuv tus IP tab sis cov tswv yim tsim thaum lawv ua, google, lub teb chaws, ntiaj teb, tsev hais plaub Askiv,….
    Txais tos thiab kuv vam tias koj yuav pom cov ntaub ntawv hais txog nws.

  4.   Logiteckno 1 said

    Kuv tseem tabtom sim kawm seb yuav teeb tsa lub server li cas, tab sis qhov kuv nyiam yog li cas teeb tsa lub server rau ntau lawm thiab kuv tseem nrhiav tsis tau cov ntaub ntawv zoo.
    Yog tias koj tsis tau daws qhov teeb meem uas koj tseem tsis tau, Kuv qhia koj kom tsim ib lub npe hauv noip.com. Koj tsim tus sau pub dawb, muab rau pej xeem tus ip thiab teeb tsa DDNS rau ntawm koj tus modem. Kuv tso koj ib qhov txuas: https://www.youtube.com/watch?v=6ijBQhn06CA
    Txais tos.

  5.   GustavoIP said

    Ua tsaug rau qhov kev koom tes, Kuv nyuam qhuav tau tsim LEMP server thiab ua tsaug rau koj qhov blog Kuv twb muaj lub tswv yim ntawm yuav ua li cas siv kuv cov nplooj ntawv WEB, tam sim no kawm me ntsis PHP lossis HTML, qhov twg yooj yim dua rau kuv thiab rov qab.
    Txais tos.

  6.   Fabian Ariel Hma said

    Muab koj cov lus qhib, xav txog tias koj yuav ua cov lus qhia ib-qib-qib rau cov neeg tsis muaj kev paub ib yam li kuv… Kuv ua tsis yog lawm.

  7.   Diego ramos said

    Nws tau pab kuv txaus, ua tsaug ntau ntau.

  8.   Miguel Angel Silva said

    Zoo tsis zoo qhov kev qhia no ...