Cov txheej txheem:

Tig lub Computer qub rau hauv Web Server !: 9 Kauj Ruam
Tig lub Computer qub rau hauv Web Server !: 9 Kauj Ruam

Video: Tig lub Computer qub rau hauv Web Server !: 9 Kauj Ruam

Video: Tig lub Computer qub rau hauv Web Server !: 9 Kauj Ruam
Video: Yasmi - Ntiaj Teb Dub Nciab 2024, Hlis ntuj nqeg
Anonim
Tig lub Computer qub rau hauv Web Server!
Tig lub Computer qub rau hauv Web Server!
Tig lub Computer qub rau hauv Web Server!
Tig lub Computer qub rau hauv Web Server!

xav tsis thoob yuav ua li cas nrog lub network cable thiab lub khoos phis tawj qub uas koj tau khaws cov hmoov av hauv koj qab daus? zoo ntawm no yog qee yam me me uas tej zaum yuav siv tau rau koj.

Kauj ruam 1: Npaj Computer

Npaj Computer
Npaj Computer
Npaj Computer
Npaj Computer

kuv paub, kuv paub, tab sis kuv paub tias tej zaum yuav muaj cov neeg saib cov lus qhia no uas tsis muaj lub khoos phis tawj qub…. koj lub khoos phis tawj yuav tsum muaj: -tau tsawg kawg 64MB ntawm RAM (tsis nyuaj dhau kom dhau hnub no) -an intel lossis AMD processor (tseem tsis nyuaj heev) -a cd-rom tsav (tseem tsis nyuaj) -caum 600MB ntawm qhov chaw (koj yuav xav tau ntau dua qhov ntawd vim qhov no yog server!)-thiab muaj peev xwm khau raj los ntawm CD-ethernet portall txhua qhov, feem ntau ntawm cov kev xav tau no yooj yim kom ua tiav. txij li peb yuav siv cov ntawv server rau kev teeb tsa no, lub khoos phis tawj no tsis tas yuav xav tau 4GB RAM thiab 500GB nyuaj tsav, txawm hais tias nws yuav zoo …

Kauj ruam 2: Tau txais Cov Txheej Txheem Ua Haujlwm

Tau lub operating system
Tau lub operating system
Tau lub operating system
Tau lub operating system

kev ua haujlwm uas peb yuav siv yog Ubuntu Server Edition 8.04. Muaj ntau txoj hauv kev kom ua tiav cov txiaj ntsig zoo ib yam nrog lub khoos phis tawj desktop, tab sis GUI yuav siv ntau lub cim xeeb thiab ua lub zog. Koj tuaj yeem rub tawm daim duab CD los ntawm qhov txuas no: https://www.ubuntu.com/getubuntu/downloadmake sure koj xaiv "Server Edition" thiab xaiv daim iav nyob ze koj.to hlawv cov duab, rub cov duab hlawv software zoo li MagicISO, lossis DVD Decrypteror koj tuaj yeem thov cds dawb, tab sis qhov ntawd yuav siv sijhawm … 3-4 lub lis piam kom raug …

Kauj Ruam 3: Txhim Kho Cov Txheej Txheem Ua Haujlwm

Nruab qhov Operating System
Nruab qhov Operating System
Nruab qhov Operating System
Nruab qhov Operating System
Nruab qhov Operating System
Nruab qhov Operating System

tam sim no los ntawm qhov kev lom zem, nco ntsoov tias koj lub khoos phis tawj tau txuas nrog lub router thiab muaj kev sib txuas hauv is taws nem thaum lub sijhawm teeb tsa no, nws yuav cia li kuaj thiab teeb tsa koj lub network teeb tsa. txhua yam koj yuav tsum tau ua tiag tiag yog tso cd ntawm Ubuntu Neeg rau zaub mov mus rau qhov kho qhov muag tsav thiab khau raj los ntawm cd hauv BIOS. nws txawv rau txhua lub khoos phis tawj tab sis koj ib txwm tuaj yeem nkag mus rau BIOS los ntawm thawj lub khau raj-up screen (aka thawj qhov uas tshwm rau ntawm lub monitor ib zaug koj nias lub hwj huam khawm) thiab nias F12 lossis Rho tawm ntawm cov keyboard ob peb daim duab tsis tau thaij, raws li cov keyboard teeb tsa thiab cov ntaub ntawv npe, koj yuav tsum paub yuav tso dab tsi ntawm no… (tus neeg tso npe tsis muaj dab tsi rau kuv) saib cov duab kom pom txhua cov kauj ruam tau ua hauv lub install.images los ntawm: https://www.howtoforge.com/perfect -server-ubuntu8.04-lts-p2a tom qab kev teeb tsa software, nws yuav nti tawm cd rov qab tawm, zoo siab! koj nyuam qhuav tau teeb tsa Ubuntu Server!

Kauj ruam 4: Webmin

Webmin
Webmin

tam sim no los txog qhov tsis txaus ntseeg. txij li Ubuntu Server tsis muaj GUI (graphical user interface), txhua yam yog raws cov ntawv. yog li, txhawm rau kom muaj kev tswj hwm qhov ua tau zoo nrog koj lub server, teeb tsa Webmin (lub vev xaib raws GUI). thaum koj nkag mus nrog tus username thiab password koj teeb tsa, sau cov lus txib no: sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perlsudo wget https://prdownloads.sourceforge.net/webadmin/webmin_1.430_all.debsudo dpkg -i webmin_1.430_all.deband koj tam sim no muaj webmin teeb tsa! nkag mus rau webmin los ntawm kev ntaus qhov no rau hauv koj tus browser chaw nyob bar: https:// your-server-IP: 10000/thiab tam sim no koj tuaj yeem nkag mus!

Kauj Ruam 5: Kev Xa Mus Rau Chaw Nkoj

Chaw Xa Ntawv
Chaw Xa Ntawv

Tam sim no ntawm no yog yam koj yuav tsum tau ua txhawm rau nkag mus rau koj lub vev xaib los ntawm txhua qhov chaw uas muaj internet qhib rau koj lub router lub vev xaib los ntawm kev ntaus hauv router tus IP chaw nyob (lub neej ntawd yog 192.168.1.1) nkag mus nrog tus neeg siv lub npe siv thiab dhau (default yog admin rau ob qho tib si lub npe siv thiab dhau yog tias koj tsis tau hloov nws, tham txog router cov ntaub ntawv lossis google lwm yam) tam sim no mus rau lub tab uas hais tias "Cov Ntawv Thov lossis Kev Ua Si" lossis "Chaw Nkag Mus Los" lossis qee yam zoo li ntawd. yuav muaj daim ntawv zoo li, koj nkag mus rau lub npe daim ntawv thov, chaw nres nkoj-rau-chaw nres nkoj xa mus, cov txheej txheem, thiab tom qab ntawd koj tus IP server. piv txwv: HTTP 80 80 TCP 192.168.1.xxxenter cov txiaj ntsig no: HTTP 80 80 TCP serverIPFTP 21 21 TCP/UDP serverIPSSH 22 22 TCP server

Kauj Ruam 6: Tau Txais Lub Npe Dawb

Tau Txais Lub Npe Dawb
Tau Txais Lub Npe Dawb

sijhawm kom tau txais lub npe sau dawb rau koj lub server. raws li tam sim no, koj tus IP chaw nyob yog koj lub vev xaib, thiab leej twg xav kom nco ntsoov? tsuas yog ua tus account tshiab thiab ua raws cov lus qhia ntawm lub vijtsam. nws yog qhov yooj yim heev los teeb tsa

Kauj Ruam 7: Tshawb Xyuas Koj Lub Vev Xaib

Ntsuam Xyuas Koj Lub Vev Xaib!
Ntsuam Xyuas Koj Lub Vev Xaib!

xijpeem koj tau ua raws li koj lub npe sau ntawm no-ip.com, nkag mus rau hauv koj qhov browser koj yuav tsum pom a Nws ua haujlwm! lus hauv koj lub browser window.if tsis yog, sim koj lub server IP chaw nyob, yog tias qhov ntawd tsis ua haujlwm, tom qab ntawd koj yuav tsum tau ua qee yam tsis raug nrog qhov chaw xa mus …

Kauj Ruam 8: Tso Cai

Tso cai
Tso cai

tam sim no kuv paub koj tab tom xav li cas, koj yuav hloov kho koj lub vev xaib li cas yog tias koj nkag tsis tau koj li server? nov yog lo lus teb. mus rau koj lub server ib zaug ntxiv thiab ua raws cov lus txib no: sudo chown yourusername: www-data/var/wwwsudo chmod 775/var/wwwyou nyuam qhuav hloov daim nplaub tshev "/var/www" qhov kev tso cai (/var/www yog lub hauv paus nplaub tshev) ntawm koj lub vev xaib). tam sim no mus rau koj lub khoos phis tawj tseem ceeb txawm tias nws yog windows lossis mac, kuv tsis tau sim nws ntawm mac tab sis ntawm windows qhov no ua haujlwm zoo. rub tawm ib qhov program hu ua "WinSCP" thiab teeb nws rau hauv koj lub computer.enter koj lub npe sau hauv tus tswv lub npe daim ntawv thiab koj lub server siv lub npe thiab tus password hauv tus username thiab password formclick txuas yuav tsum txuas koj rau koj lub server, thiab koj yuav tsum muaj peev xwm pom tag nrho cov ntaub ntawv ntawm koj lub server. nce mus rau ob peb phau ntawv teev npe kom txog thaum koj pom var nplaub tshev, nkag mus rau var nplaub tshev thiab tom qab ntawd www folderyou tam sim no tuaj yeem luam cov vev xaib tshiab rau hauv cov ntawv ntawd txhawm rau hloov kho koj lub vev xaib kom nws txias dua thiab nyuaj dua. kom ua tiav cov lus txib nyob deb, siv PuTTY, SSH cov haujlwm pabcuam, google nws thiab rub nws mus rau koj lub computer ib yam

Kauj Ruam 9: Lwm Txoj Kev Xav …

Lwm Txoj Kev Xav …
Lwm Txoj Kev Xav …

qhov no yog ib qho ntawm ntau txoj hauv kev teeb tsa lub khoos phis tawj qub los tig nws mus rau hauv lub vev xaib. lwm Cov Lus Qhia uas tau pab kuv pib ob peb npaub dhau los tau ua los ntawm CalcProgrammer1if yog tias koj xav pom nws cov lus qhia ua raws qhov txuas no: https://www.instructables.com/id/Set-up-your-very-own-Web-server /? ALLSTEPSif yog tias muaj dab tsi uas kuv tau plam, thov koj xav tawm tswv yim ntxiv, yog tias txhua yam ua haujlwm raws li nws yuav tsum tau, koj tsis xav tau lub monitor lossis keyboard ntxiv lawm, uas txhais tau tias koj tuaj yeem teeb tsa lub khoos phis tawj no kom qhib tau hauv BIOS. ntawm lub sijhawm muab, yog li tseem ceeb, koj tuaj yeem khaws cov server no hauv lub txee dai khaub ncaws thiab tsis tas yuav nkag mus rau nws lub cev ntxiv lawm. qhov ntawd zoo npaum li cas?!

Pom zoo: