Linux
- Qhib lub qhov rais Terminal.
- Nkag mus rau cov lus txib hauv qab no kom qhib cov ntaub ntawv hosts hauv cov ntawv nyeem: sudo nano /etc/hosts.
- Nkag mus rau koj tus neeg siv tus password.
- Ua qhov tsim nyog hloov pauv rau cov ntaub ntawv.
- Press Control-X.
- Thaum koj nug yog tias koj xav txuag koj cov kev hloov pauv, sau y.
Kuv yuav nrhiav tau cov ntaub ntawv host hauv Linux li cas?
Ntawm Linux, koj tuaj yeem pom cov ntaub ntawv hosts under /etc/hosts. Txij li nws yog cov ntawv sau yooj yim, koj tuaj yeem qhib cov ntaub ntawv hosts siv koj cov ntawv nyeem uas koj nyiam. Txij li cov ntaub ntawv hosts yog cov ntaub ntawv kaw lus, koj yuav xav tau txoj cai tswj hwm kom txuag kev hloov pauv.
Kuv yuav nrhiav tau cov ntaub ntawv host li cas?
Press Windows Key + R. Hom %WinDir%\System32\Drivers\Etc rau hauv Khiav qhov rai thiab nyem OK. Qhib cov ntaub ntawv hosts nrog cov ntawv nyeem xws li Notepad. Cov tswv yuav tsis muaj cov ntaub ntawv txuas ntxiv.
Kuv yuav tsim cov ntaub ntawv host li cas?
Create a new Windows host file
Right- click the hosts file, thiab xaiv Rename. Nyob rau hauv lwm yam nplaub tshev, right-click rau ntawm qhov chaw seem thiab xaiv New > Text Document. Nyem Yog kom paub meej. Right-click the hosts file and then click Open With or Open.
Kuv yuav tawm tswv yim li cas ntawm tus tswv tsev cov ntaub ntawv hauv Linux?
Tau ntawv los ntawm "" cim mus txog thaum kawg ntawm kabyog cov lus pom, thiab tsis quav ntsej. Cov npe tswv yuav tsuas muaj cov cim alphanumeric, cov cim rho tawm ("-"), thiab lub sijhawm ("."). Lawv yuav tsum pib nrog cov tsiaj ntawv thiab xaus nrog cov tsiaj ntawv cim.