# 서버 명령어 모음집

# Port Kill 명령어

### **PID 조회 명령어 :**

### **lsof -i:22011 (숫자는 포트번호)**

**<span class="s1">COMMAND <span class="Apple-converted-space"> </span>PID <span class="Apple-converted-space"> </span>USER <span class="Apple-converted-space"> </span>FD <span class="Apple-converted-space"> </span>TYPE<span class="Apple-converted-space"> </span>DEVICE SIZE/OFF NODE NAME</span>**

**<span class="s1">main<span class="Apple-converted-space"> </span>1522169 opticalpos<span class="Apple-converted-space"> </span>8u<span class="Apple-converted-space"> </span>IPv6 328050062<span class="Apple-converted-space"> </span>0t0<span class="Apple-converted-space"> </span>TCP \*:22011 (LISTEN)</span>**

### **Port Kill 명령어 :**

### **kill -9 PID (lsof로 조회한 pid 입력)**