Sida loo tafatiro faylka martida loo yahay ee Mac
Sida kombuyuutarrada ku salaysan Windows, Mac wuxuu leeyahay faylka martida loo yahay si uu u habeeyo sida mashiinkaagu ugu xidhmo shabakadaha internetka(Internet) . Faylkan waxa uu ka kooban yahay tixraacyo mareegaha iyo cinwaannada IP-ga, waxaadna siyaabo kala duwan ugu isticmaali kartaa Mac -gaaga .
Mid ka mid ah sababaha aad u rabto inaad wax ka beddesho faylka martida loo yahay ee (edit the hosts file)Mac -gaaga ayaa ah inaad xannibto boggaga internetka. Waa hab aad u wanaagsan oo looga hortago in qaar ka mid ah mareegaha laga galo mashiinkaaga. Isticmaalka labaad ee suurtogalka ah waa inaad ku tijaabiso mareegahaaga maxalli ahaan mashiinkaaga. Waxaad heli kartaa faylka martida loo yahay inuu u wareejiyo magacaaga domain ee aad dooratay dariiqa shabakada kaydinta deegaankaaga.
Mac Hosts Goobta Faylka(Mac Hosts File Location)
Maadaama tafatirka faylka martida loo yahay uu yahay hawl halis ah, Apple waxay si ula kac ah ugu dhejisay gal gaar ah nidaamkaaga. Taasi waa in laga hortago isticmaalayaasha inay wax ka beddelaan iyaga oo aan aqoon habboon u lahayn oo ay waxyeello u geystaan nidaamka oo dhan.
Isticmaalayaasha xiisaha leh ee halkaas jooga, jidku waa /etc/hosts/ oo waxaad ku geli kartaa adigoo isticmaalaya daaqad Terminal ah.(Terminal)
Wax ka beddel faylka martida loo yahay Mac(Edit Hosts File On Mac)
Way fududahay in la tafatiro faylka martida loo yahay ee Mac kaaga maadaama uu jiro tafatire ku dhex jira oo lagu sameeyo. Waxay ku taal gudaha Terminalka(Terminal) waxaana loo yaqaannaa tafatiraha nano. Waxaad u isticmaali kartaa inaad furto oo aad wax ka beddesho fayl kasta oo qoraal ah oo ay ku jiraan faylka martida loo yahay ee mashiinkaaga.
Hubi(Make) inaad isticmaalayso koontada maamulka si aad u samayso tillaabooyinka soo socda.
- Guji Launchpad Dock, raadi Terminal , oo bilow.
- Ku qor amarka soo socda Terminalka(Terminal) oo tabo Gelida(Enter) . Waxay furi doontaa faylka martida loo yahay tafatiraha nano.
sudo nano /etc/hosts
- Maadaama ay tahay amar sudo, waxay ku weydiin doontaa inaad geliso eraygaaga sirta ah. Geli erayga sirta ah oo sii wad
- Faylku hadda waa inuu furnaa shaashaddaada oo waxaad bilaabi kartaa tafatirkiisa.
Fahamka Faylka Martigelinta Mac(Understanding The Mac Hosts File)
Haddii aadan horey u tafatirin faylka martida loo yahay, waxaa laga yaabaa inaad u aragto faylka xoogaa adag in lagu shaqeeyo. Si kastaba ha ahaatee, ma adka in wax laga beddelo sida ay u muuqato.
Mid ka mid ah gelinta aad ka heli doonto faylka waa 127.0.0.1 localhost .
Qaybta koowaad ee lambaradu waa cinwaanka IP-ga ee Mac kaaga . Qaybta labaad ee ay ku leedahay magaca martida loo yahay waa waxa aad isticmaasho si aad u gasho cinwaanka IP-gaas.
Labada qaybood ee kor ku xusan, marka la isku daro, u jiheeyaan dhammaan weydiimaha localhost ciwaanka IP 127.0.0.1 . Markaad gasho localhost biraawsarkaaga, barowsarkaaga wuxuu eegayaa faylka martida loo yahay, wuxuu helayaa cinwaanka IP-ga ee la cayimay, wuxuuna ku geynayaa ciwaanka IP-ga.
Marka la soo koobo, faylka martida loo yahay waa wax aan ahayn isku darka cinwaannada IP iyo magacyada domain. Waxaad kuwan u beddeli kartaa si kasta oo aad rabto si aad u gaadho natiijooyinka la rabo.
Ku Habee Jihaynta Faylka Martigelinta(Set Up Redirects With The Hosts File)
Mid ka mid ah waxyaalihii aad ku samayn karto faylka martida loo yahay waa inaad dejiso jihooyin. Waxaad yeelan kartaa magac domain barta shay gabi ahaanba ka duwan waxa loo malaynayo in lagu tilmaamo.
Tusaale ahaan, haddii aad isku dayayso inaad yarayso isticmaalkaaga warbaahinta bulshada, waxaad yeelan kartaa domains sida facebook.com u jiheeyahaaga biraawsarkaaga bogagga sida, dheh, Wikipedia . Waxaad isticmaali kartaa wax ku saabsan domain kasta iyo cinwaanka IP ee aad rabto.
Aan eegno sida aad u dejisan karto dib u habeynta sare adoo isticmaalaya faylka martida loo yahay(set up the above redirection using the hosts file) .
- Inta uu faylku ka furan yahay tafatiraha nano, isticmaal furayaasha fallaadha si aad u keento curcurkaaga halka uu ku dhammaanayo localhost . Dabadeed taabo Gelida(Enter) si aad u geliso khad cusub.
- Xariiqda cusub ee aad hadda ku dartay, ku qor ciwaanka IP-ga meesha aad rabto inaad u jihayso goobta isha. Waxaan isticmaali doonaa 103.102.166.224 , kaas oo ah cinwaanka IP-ga Wikipedia.
- Riix furaha tab ee kiiboodhkaaga si aad u tagto goobta goobta laga soo xigtay.
- Halkan, ku qor magaca domainka ee lagu hagaajinayo ciwaanka IP-ga ee aad hore u qortay. Waxaan isticmaali doonaa facebook.com halkan.
- Marka isbeddellada la sameeyo, taabo furayaasha Ctrl + O ee kumbuyuutarkaaga si aad u kaydiso faylka.
- Riix Gelida(Enter) si aad u xaqiijiso falka
- Riix furayaasha Ctrl + X si aad u xirto tifaftiraha nano.
- Hadda waxaad u baahan tahay inaad daadiso kaydka DNS si isbeddelada loo dhaqangeliyo. Si aad taas u samayso, ku qor amarka soo socda Terminal- ka oo taabo Gelida(Enter) .
dscacheutil -flushcache
- Fur browser, ku qor facebook.com , oo ku dhufo Gelida(Enter) . Waxaad ka heli doontaa inay furto Wikipedia halkii Facebook laga furi lahaa .
Talo degdeg ah: Sida loo helo ciwaanka IP-ga ee mareegaha(Quick Tip: How To Find a Website’s IP Address)
Sida aad ku arki karto habka kor ku xusan, waxaad u baahan tahay cinwaanka IP-ga ee goobta aad rabto inaad dadka u soo jeediso. Haddii aadan horey u aqoon, waxaad isticmaali kartaa amar ku yaal Terminal si aad u ogaato cinwaanka IP-ga ee shabakad kasta(find out the IP address of any website) .
- Daaqadda Terminalka(Terminal) , ku qor amarka soo socda oo ku dhufo Gelida(Enter) . Hubi inaad ku beddesho wikipedia.org bogga aad dooratay.
ping wikipedia.org
- Waxay ku tusi doontaa ciwaanka IP-ga shaashaddaada Taasi waa waxa aad ku isticmaali karto faylka martida loo yahay.
Xiro Mareegaha Internetka Adigoo Tafatiraya Faylka Martigeliyayaasha ee Mac(Block Websites By Editing The Hosts File On Mac)
Waxa ugu weyn ee ku saabsan faylka martida loo yahay waa inay kuu ogolaato inaad xannibto boggaga(it lets you block sites) adigoon u baahnayn inaad ku rakibto barnaamij kasta oo dhinac saddexaad ah Mac -gaaga . Waxaad ku dari kartaa galitaanka faylka oo dhammaan codsiyada isku xirka gelitaankaas waa la diidi doonaa.
- Ku billow faylka martida loo yahay tafatiraha nano sida kor ku cad.
- Keen cursorkaaga halka gelitaanka localhost uu ku dhammaanayo oo taabo Gelida(Enter) si aad ugu darto khad cusub.
- Ku qor cinwaanka IP-ga 127.0.0.1 oo taabo Tab on your keyboard.
- Geli(Enter) magaca domainka ee goobta aad rabto inaad xannibto. Tusaale ahaan, haddii aad rabto inaad xannibto Instagram , ku qor instagram.com .
- Riix Ctrl + O si aad u badbaadiso isbedelada.
- Riix Ctrl + X si aad u xirto faylka.
- Ku qor amarka soo socda oo taabo Gelida(Enter) si aad u daadiso kaydka DNS.
dscacheutil -flushcache
Hadda mar kasta oo aad isku daydo inaad gasho goobta la xannibay, waxay ku geyn doontaa localhost taasoo tusi doonta bogga qaladka.
Faylka martigeliyaha Mac wuxuu ku siinayaa habab badan oo aad ku ciyaarto codsiyada shabakada socda, oo waad xannibi kartaa oo aad ka furi kartaa iyaga sidaad rabto. Horay ma u isticmaashay faylka martida loo yahay Mac kaaga ? Haddii ay jirto, maxaa loogu talagalay? Noogu sheeg faallooyinka hoose.
Related posts
Beddel ama ka qaad ciwaanka MAC Windows ama OS X
Ku hagaaji "Ma Rakibi Karo Software-ka Daabacaha" ee OS X
Eeg furaha Wi-Fi ee kaydsan (WPA, WEP) ee OS X
Sida loo sameeyo sawirka Disk-ga qarsoon ee OS X
5 siyaabood oo lagu Muujin karo Jidka Faylka ee MacOS
Furayaasha qaarkood ee Mac-gaaga ayaan si sax ah u shaqayn?
Sida loo Screen Record on Mac
Sida Loo Helo loona cusboonaysiiyo 32-Bit Apps ee Mac-gaaga
Sida loo qaado Screenshot-ka Mac OS oo wata Keyboard Shortcuts
Sida loo hagaajiyo Google Drive-ka oo aan ku dhex soconin Mac
Ku kaydi Mac-gaaga adigoo isticmaalaya Time Machine
Sida Loo Sawir Qaado Mac
Sida Loo Cusbooneysiyo Mac OS X & Mac Apps From Terminal
Sida loo dhaqaajiyo faylasha Mac OS X
Sida loo Beddelka iyo Isku-dhafka Faylasha Mac
APFS vs Mac OS Extended - Qaabkee Mac Disk-ga ugu Wanaagsan?
Apps-ka ugu Wanaagsan ee loogu talagalay Mac 2020
Sida Looga Dareemayo Booskaga Mac OS X Computer kaaga
Sida Loo Awood & Isticmaalo 'Sawirka Sawirka' Qaabka Mackaaga
Sida loo Format kaarka SD on Mac