Waa maxay faylka Hosts ee Windows? Sida loo tafatiro iwm/martigeliyayaasha?

Faylka Hosts -ka, aka etc/hosts wuxuu jiray ilaa 1984. Nidaam kasta oo ka hawlgala wuxuu leeyahay mid, oo ay ku jiraan Windows . Waxaa laga yaabaa inaad la kulantay ereyga iwm/martigeliyayaasha adiga oo aan garanayn waxa ay ka dhigan tahay, iyo sababta loo isticmaalo. Haddii aad tahay horumariye mareegaha, waxa hubaal ah in aad garanayso waxa uu faylkani yahay, oo aad rabto in aad si degdeg ah u hesho. Tilmaan-bixiyahan, waxaanu ku sharaxaynaa waxa uu yahay faylka Hosts -ka, halka uu ku yaallo Windows , waxa gelitaanka martida loo yahay, iyo sida loo tafatiro faylka Hosts -ka iyada oo aan lagu turunturoonayn khaladaadka oggolaanshaha. Aan bilowno:

Waa maxay faylka Hosts ee Windows?

Faylka Hosts (sidoo kale loo yaqaan etc/hosts ) waa fayl qoraal ah oo ay adeegsato Windows (iyo nidaamyada kale ee hawlgalka) si ay u khariideeyaan cinwaannada IP-yada si ay u martigeliyaan magacyada ama magacyada domain. Faylkaani wuxuu u shaqeeyaa sidii adeeg DNS(DNS service) oo deegaanka ah , kombayutarka deegaankaaga, wuxuuna meesha ka saarayaa khariidadaha server-ka DNS ee uu kombayutarkaagu ku xidhan yahay, iyada oo loo marayo shabakada.

Faylka iwm/martigeliyayaasha gudaha Windows

Halkee buu ku yaalaa faylka martida loo yahay Windows ?

Faylasha Hosts -ka (ama etc/hosts ) waxaa laga helaa galkan soo socda: "C:\Windows\System32\drivers\etc"

Goobta faylka Hosts, ee Windows

Waa fayl aan lahayn fayl kordhin, oo la furi karo oo laga daawado tafatire kasta oo qoraal ah, oo uu ku jiro Notepad .

Waa maxay gelitaanka martida loo yahay ee Windows?

Faylka Hosts -ku waxa uu kaydiyaa geliyaasha martida loo yahay(host entries) . Waxay yihiin xariiqyo qoraal ah oo habaysan oo isticmaala qaabkan soo socda: IPaddress Hostname Comment . Qaybta hore waa cinwaanka IP-ga ee aad dib u habeyn ku sameyso, qeybta labaad waa domain-ka aad rabto inaad dib u habeyso, tan seddexaad waa faallo. Faalladu qasab maaha oo kaliya labada qaybood ee hore waa. Waxaad kala saari kartaa saddexda qaybood ee gelitaanka martida loo yahay meelo bannaan ama TABs (riix furaha TAB hal ama laba jeer). Tusaale ahaan, waxaad ku dari kartaa xariiq oranaya: "127.0.0.1 www.google.com"

Tafatirka faylka Hosts ee Notepad

Markaad kaydiso gelida sare, Windows waxay u jihaysaa bogga www.google.com kombayutarka deegaankaaga, dhammaan abkaaga iyo daalacashada shabakada.

Waa maxay 127.0.0.1?

127.0.0.1 waa ujeedo gaar ah IP-address kaas oo u horseedaya localhost, kaas oo ah kombayutarkaga. Waxa kale oo loo yaqaan "cinwaanka loopback", oo macneheedu yahay ciwaanka dib ugu celinaya kombiyuutarka isagoo isticmaalaya ciwaanka. Si ka duwan ciwaanka IP-ga caadiga ah(standard IP addresses) , ciwaanka loopback kuma xidhna qalab kasta, jidh ahaanna kuma xidhna shabakad. Ciwaanka waxa isticmaala apps iyo adeegyada ku rakiban kombayutarkaga, si loola xidhiidho localhost, taasoo la macno ah kombayutarkaga.

localhost redirect

Kumbiyuutarkaagu waxa kale oo uu leeyahay cinwaan IP gaar ah, oo ka duwan 127.0.0.1, ee ku xidhan kaarka shabakadda, kaas oo loo isticmaalo in lagula xidhiidho aaladaha iyo adeegyada kale ee shabakadda ama internetka.

Inta badan, cinwaanka IP-ga localhost waxaa loo isticmaalaa marka lagu rakibayo server-ka kumbuyuutarkaaga, horumarinta shabakadda, si boggaga internetka ee la sameeyay ay u noqon karaan kuwo gudaha ah, oo lagu tijaabiyo browserka webka, sida haddii ay ku nool yihiin internetka. .

Si looga fogaado isku dhacyada shabakadaha kombuyuutarrada, ciwaanka IP-yada ee loo isticmaalo aaladaha shabakadda waxay noqon karaan wax aan ka ahayn 127.0.0.1. Tusaale ahaan, haddii aad gacanta isku daydo inaad wax ka beddesho ciwaanka IP-ga ee kaarka shabakadaada, gudaha Windows , waxaad helaysaa qalad sheegaya in: "Cinwaannada IP ee ka bilaabmaya 127 ma shaqaynayaan sababtoo ah waxay u hayaan ciwaanka loopback. Fadlan sheeg qiime kale oo ansax ah. inta u dhaxaysa 1 iyo 223."("IP addresses starting with 127 are not valid because they are reserved for loopback address. Please specify some other valid value between 1 and 223.")

Cinwaannada IP-ga ee ka bilaabmaya 127 ma jiraan

Sida loo furo oo loo arko Hosts (etc/hosts) faylka gudaha Windows

Waxaad tafatir kartaa faylka Hosts adigoo isticmaalaya tifaftire kasta oo qoraal ah. Aynu(Let) isticmaalno Notepad tusaale ahaan. Marka hore(First) , iyo tan ugu muhiimsan, waa inaad furto (open )Notepad (ama tifaftiraha qoraalka aad jeceshahay) adigoo wata ogolaanshaha maamulaha. Hal dariiqo oo taas lagu sameeyo ayaa ah in la raadiyo ereyga "notepad" gudaha Windows 10 , midig-guji (ama taabo oo hay) natiijada raadinta Notepad , ka dibna dhagsii ama taabo "Run as administration." ("Run as administrator.")Isla markiiba UAC(UAC prompt) ee la tusay, taabo Haa(Yes) .

Fur Notepad sida admin

Hadda waxaad u baahan tahay inaad furto faylka Hosts . Guji ama taabo Faylka(File) ka dibna Fur(Open) , ama taabo CTRL+O kiiboodhkaaga.

Fur faylka Notepad

U baadho "C:\Windows\System32\drivers\etc" ama koobi ka bixi oo ku dheji dariiqa ciwaanka ee daaqada furan , oo tabo (Open)Gelida(Enter) .

Fur C:WindowsSystem32driversetchosts gudaha Notepad

Marka hore, "wax shay ku habboon raadintaada ma jiraan"("no items match your search") taasoo la macno ah inaadan arag wax fayl ah. Taasi waa sababta oo ah faylka Hosts ma laha faylka kordhinta, iyo Notepad wuxuu raadinayaa kaliya faylasha leh ".txt" kordhinta. Guji(Click) ama taabo liiska hoos-u-dhaca ee dhanka midig ee goobta magaca faylka(File name) , oo dooro "All Files (*.*)."

Ku arag dhammaan faylasha oo wata notepad

Hadda waxaad arkaysaa dhammaan faylasha ku jira galka, oo ay ku jiraan martigeliyayaasha(hosts) . Dooro faylka oo tabo Fur(Open) .

Fur C:WindowsSystem32driversetchosts gudaha Notepad

Sida loo tafatiro Hosts -ka (iwm/hosts) ee gudaha Windows

Kadib markaad furto faylka Hosts -ka , waad wax ka beddeli kartaa, oo aad ku dari kartaa, bedeli kartaa ama ka saari kartaa gelinta, sida aad ku sameyso faylka qoraalka kale.

Xusuusnow(Remember) in dhammaan geliyaasha aad ku dartay ay tahay inay isticmaalaan qaabkan: IP address Hostname . Ku dar xariiq sida "127.0.0.1 www.google.com" ama "192.168.1.1 www.webapp.com"

Tafatirka faylka Hosts ee Notepad

Markaad dhammayso tafatirka faylka Hosts , waxaad u baahan tahay inaad kaydiso isbedeladaada. Haddii isbeddelada la sameeyo oo aan la keydin, ogaysii in foornada daaqada Notepad ay ka bilaabato calaamad *. Si aad u kaydsato isbedeladaada, aad faylka(File) oo kadibna Save ama taabo CTRL+S kiiboodhkaga.

Kaydinta faylka Hosts ee Notepad

Kadib markaad kaydiso isbeddeladaada, isla markiiba waa la dabaqayaa oo meesha ka saarayaa khariidadaha server-ka DNS ee kumbuyuutarkaagu ku xidhan yahay.

Maxay dadku u isticmaalaan faylka Hosts?

Inta badan isticmaalayaasha kombuyuutarrada caadiga ah ma isticmaali doonaan faylka Hosts ilaa ay rabaan inay si toos ah qof ugu jiidaan oo ay u isticmaalaan si ay u xannibaan gelitaanka Google , Facebook ama bog kale, oo ay ka dhigaan inay u maleynayaan inuu hoos u dhacay, oo uusan shaqeyneynin. . Dadka isticmaala faylka Hosts -ka inta badan waa kuwa sameeya shabakadaha abuura mareegaha iyo apps webka, kuwaas oo ay tahay in lagu tijaabiyo gudaha, ka hor inta aan lagu daabicin internetka.

Google.com waxaa xannibay faylka martida loo yahay

Xirfadlayaasha IT sidoo kale waxay isticmaalaan faylka Hosts si ay u xannibaan gelitaanka goobo gaar ah iyo ilaha shabakada, kombiyuutarada ay ku maamulayaan shaqada. Tusaale ahaan, waxay u isticmaali karaan inay xannibaan xayeysiisyada shabakadooda ganacsi, ee shabakadaha xayeysiiska ah.

Malware waxa kale oo ay isticmaali kartaa faylka Hosts -ka si ay ugu jihayso taraafikadaada mareegaha server-yada fog laga maamulo oo ay xaddo macluumaadka shakhsiyeed ama xog kale.

Ma bedeli karo faylka Hosts gudaha Windows ! Maxaan sameeyaa?

Markaad tafatirayso oo aad kaydinayso faylka Hosts gudaha (Hosts)Windows , waxa laga yaabaa inaad hesho fariin khalad ah oo odhanaysa: "Ma haysatid ogolaansho aad ku kaydsato meeshan." ("You don't have permissions to save to this location.")Tani waxay dhacdaa sababtoo ah ma aadan furin Notepad ama tifaftiraha qoraalka ee aad isticmaalayso, adigoo wata ogolaanshaha maamulaha. Akhri qaybaha sare oo arag sida loo bilaabo Notepad oo leh ogolaanshaha maamulaha.

Fariinta khaladka ah: Ma lihid ogolaansho aad ku kaydsato goobtan

Kadib markaad taas sameyso, waxaad tafatiran kartaa faylka Hosts -ka adigoon wax qalad ah iyo dhibaato ogolaansho lahayn.

Sidee u isticmaashaa faylka Hosts gudaha Windows ?

Waad(Thank) ku mahadsan tahay akhrinta casharkan. Waxaan rajeyneynaa inaan ku guuleysanay inaan ka jawaabno dhammaan su'aalahaaga ku saabsan faylka Hosts -ka. (Hosts)Kahor intaadan xirin, faallo noogu sheeg, sida aad u qorsheyneyso inaad u isticmaasho faylka Hosts gudaha (Hosts)Windows ? Ma shaqo ayey u tahay mise saaxiib ama xubin qoyska ka mid ah baa ku kaftan? Hoos ka faallooda(Comment) oo aynu wadaagno waayo-aragnimadeena la shaqaynta faylka Hosts -ka.(Hosts)



About the author

Waxaan ahay injineer software iyo sahamiye. Waxaan khibrad u leeyahay labada Microsoft Xbox 360 iyo Google Explorer. Waxaan awoodaa inaan bixiyo talooyinka khabiirada ee qalabyada horumarinta software-ka qaarkood, iyo sidoo kale inaan caawiyo dadka inay cilad-saaraan khaladaadka Explorer ee caadiga ah.



Related posts