Yuav ua li cas Ping ntawm Linux: 9 Kauj Ruam (nrog Duab)

Cov txheej txheem:

Yuav ua li cas Ping ntawm Linux: 9 Kauj Ruam (nrog Duab)
Yuav ua li cas Ping ntawm Linux: 9 Kauj Ruam (nrog Duab)

Video: Yuav ua li cas Ping ntawm Linux: 9 Kauj Ruam (nrog Duab)

Video: Yuav ua li cas Ping ntawm Linux: 9 Kauj Ruam (nrog Duab)
Video: Koos Vaj - Puas Muaj Tshuaj Kho Kev Hlub 2024, Kaum ib hlis
Anonim

Qhov wikiHow qhia koj li cas los ntsuas kev sib txuas ntawm Linux lub computer thiab lwm qhov siv "ping" hais kom ua. Koj kuj tseem tuaj yeem siv cov lus tshaj tawm ntawm "ping" hais kom ua "traceroute" txhawm rau nrhiav seb lwm tus IP chaw nyob lub khoos phis tawj tau thov kom mus txog lwm lub khoos phis tawj qhov chaw nyob.

Kauj ruam

Txoj Kev 1 ntawm 2: Siv "Ping" Hais kom ua

Ping hauv Linux Kauj Ruam 2
Ping hauv Linux Kauj Ruam 2

Kauj Ruam 1. Qhib Terminal hauv computer

Nyem (lossis ob-nias) lub cim Terminal, uas zoo li lub thawv dub nrog lub cim dawb> _ "cim sab hauv. Koj tseem tuaj yeem nias Ctrl+Alt+T ib txhij.

Ping hauv Linux Kauj Ruam 3
Ping hauv Linux Kauj Ruam 3

Kauj ruam 2. Ntaus cov lus txib "ping"

Nkag mus rau ping, ua raws los ntawm lub vev xaib lossis IP ntawm lub vev xaib koj xav ping.

Piv txwv li, txhawm rau ping lub vev xaib Facebook, ntaus ping www.facebook.com

Ping hauv Linux Kauj Ruam 4
Ping hauv Linux Kauj Ruam 4

Kauj Ruam 3. Nias Sau

Qhov "ping" hais kom ua yuav ua tiav thiab thov rau qhov chaw nyob ntawd yuav raug xa mus.

Ping hauv Linux Kauj Ruam 5
Ping hauv Linux Kauj Ruam 5

Kauj Ruam 4. Txheeb xyuas qhov ping ceev

Ntawm sab xis ntawm txhua kab lus tso tawm, koj yuav pom tus lej, tom qab ntawv luv "ms". Tus lej sawv cev rau lub sijhawm (hauv milliseconds) nws siv lub hom phiaj khoos phis tawj los teb cov lus thov.

  • Tus lej me me tso tawm, kev sib txuas ntawm koj ntawm lwm lub computer lossis lub vev xaib lub hom phiaj.
  • Thaum pinging lub vev xaib chaw nyob hauv Terminal, kab thib ob qhia tus IP chaw nyob ntawm lub vev xaib koj tab tom pinging. Koj tuaj yeem siv nws los ping lub vev xaib tsis yog IP chaw nyob.
Ping hauv Linux Kauj Ruam 6
Ping hauv Linux Kauj Ruam 6

Kauj Ruam 5. Nres cov txheej txheem ping

Cov lus txib "ping" yuav ua haujlwm tas li. Txhawm rau nres nws, nyem qhov shortcut Ctrl+C. Cov lus txib yuav raug txiav tawm thiab cov txiaj ntsig ping yuav tshwm nyob rau hauv kab "^C".

Txhawm rau pom qhov nruab nrab ntev nws yuav siv rau lwm lub khoos phis tawj los teb rau cov ntaub ntawv thov, saib tus lej tom qab thawj hlais (“/”) hauv kab hauv qab “# pob ntawv xa, # tau txais” ntu

Txoj Kev 2 ntawm 2: Siv Traceroute Command

Ping hauv Linux Kauj Ruam 8
Ping hauv Linux Kauj Ruam 8

Kauj Ruam 1. Qhib Terminal hauv computer

Nyem (lossis ob-nias) lub cim Terminal, uas zoo li lub thawv dub nrog lub cim dawb> _ "cim sab hauv. Koj tseem tuaj yeem nias Ctrl+Alt+T ib txhij.

Ping hauv Linux Kauj Ruam 9
Ping hauv Linux Kauj Ruam 9

Kauj Ruam 2. Ntaus qhov hais kom ua "traceroute"

Nkag mus rau traceroute, ua raws li tus IP chaw lossis lub vev xaib koj xav taug qab.

Piv txwv, txhawm rau taug txoj kev ntawm koj lub router mus rau Facebook cov servers, ntaus traceroute www.facebook.com

Ping hauv Linux Kauj Ruam 10
Ping hauv Linux Kauj Ruam 10

Kauj Ruam 3. Nias Sau

Cov lus txib "traceroute" yuav ua tiav.

Ping hauv Linux Kauj Ruam 11
Ping hauv Linux Kauj Ruam 11

Kauj Ruam 4. Txheeb xyuas txoj hauv kev uas cov ntaub ntawv thov coj mus

Ntawm sab laug ntawm txhua kab tshiab uas tshwm, koj tuaj yeem pom tus IP chaw nyob ntawm tus router uas ua tiav kev thov taug qab. Koj tseem tuaj yeem pom lub sijhawm (hauv milliseconds) nws tau coj los ua qhov kev thov ntawm sab xis ntawm kab.

  • Yog tias koj pom lub hnub qub rau ib qho ntawm txoj hauv kev, nws txhais tau tias lub server uas lub khoos phis tawj xav tias yuav txuas nrog yog qis lossis tsis txuas nrog lub network yog li lub khoos phis tawj xav sim nkag mus rau lwm qhov chaw nyob.
  • Cov lus txib traceroute yuav nres thaum cov ntaub ntawv thov mus txog nws lub hom phiaj.

Lub tswv yim

Qhov "ping" cov lus piav qhia hauv kab lus no tseem tuaj yeem siv cov lus hais ntawm Command Prompt ntawm Windows khoos phis tawj thiab Terminal ntawm Mac khoos phis tawj

Pom zoo: