Cov txheej txheem:

Kuv yuav kaw qhov chaw nres nkoj hauv Ubuntu li cas?
Kuv yuav kaw qhov chaw nres nkoj hauv Ubuntu li cas?

Video: Kuv yuav kaw qhov chaw nres nkoj hauv Ubuntu li cas?

Video: Kuv yuav kaw qhov chaw nres nkoj hauv Ubuntu li cas?
Video: Sib Hawm Dhau (Time Passed) Music Video by: Deeda/Dib Xwb 2024, Tej zaum
Anonim

Rau kaw tus chaw nres nkoj tus lej manually ua ntej tus txheej txheem npe / id yuav tsum pom tias yog tuav lub chaw nres nkoj qhib thiab tom qab ntawd siv cov lus txib tua ntawm cov txheej txheem ntawd. Hauv qhov piv txwv saum toj no nws pom tias chaw nres nkoj 8888 tau tuav hauv kev siv los ntawm kev hais kom ua java nrog pid 8461. Ntawm no peb siv -u rau udp chaw nres nkoj.

Tsis tas li, kuv yuav kaw li cas qhib cov chaw nres nkoj hauv Ubuntu?

Koj tuaj yeem siv netstat -nalp thiab lsof -i: chaw nres nkoj cov cuab yeej los txheeb xyuas cov txheej txheem / binaries qab qhib chaw nres nkoj . Yog koj xav tau kaw qhov chaw nres nkoj koj yuav tsum tua txheej txheem lossis tso tseg kev pabcuam txheeb ze. Yog tias koj xav tau kev pabcuam tsuas yog rau koj lub thawv hauv zos koj tuaj yeem teeb tsa cov kev pabcuam los mloog hauv localhost / 127.0. 0.1 tsis nyob rau txhua qhov muaj (0.0.

Kuj Paub, Kuv yuav kaw qhov chaw nres nkoj li cas? Yog koj xav tau kaw ib qhib chaw nres nkoj , koj tuaj yeem ua li ntawd los ntawm kev siv Windows Firewall (Windows Defender Firewall rau Windows 10). Piv txwv li, cia peb hais tias koj xav tau kaw qhov chaw nres nkoj 5500 rau tag nrho cov inbound kev sib txuas. Ua raws li cov kauj ruam hauv qab no. Qhib Windows Firewall los ntawm mus rau Pib | Tswj Vaj Huam Sib Luag | Windows Firewall.

Ntxiv mus, kuv yuav kaw qhov chaw nres nkoj hauv Linux li cas?

Txhawm rau kaw qhov chaw nres nkoj qhib:

  1. Nkag mus rau lub server console.
  2. Ua raws li cov lus txib hauv qab no, hloov qhov chaw PORT nrog tus lej ntawm qhov chaw nres nkoj kom raug kaw: Debian: sudo ufw tsis lees paub PORT. CentOS: sudo firewall-cmd --zone=public --permanent --remove-port=PORT/tcp sudo firewall-cmd --reload.

Kuv yuav tua port 8080 li cas?

Peb yuav tsum tau khiav ob peb cov lus txib hauv cov lus txib kom tua cov txheej txheem uas siv chaw nres nkoj 8080

  1. Kauj ruam 1: Nrhiav tus txheej txheem id nyob rau hauv lub qhov rais siv hais kom ua prompt. netstat -ano | findstr netstat -ano | findstr
  2. Kauj ruam 2: Tua cov txheej txheem siv cov lus txib kom sai. Taskill /F /PID

Pom zoo: