mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 22:12:51 +08:00
更新 lsof 参数
This commit is contained in:
+5
-5
@@ -69,14 +69,14 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
## 检查 53 端口占用
|
## 检查 53 端口占用
|
||||||
$ sudo lsof -i :53
|
$ sudo lsof -n -i :53
|
||||||
|
|
||||||
#### 端口占用示例输出
|
#### 端口占用示例输出
|
||||||
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
|
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
|
||||||
systemd-r 347 systemd-resolve 17u IPv4 13445 0t0 UDP localhost:domain
|
systemd-r 1797 systemd-resolve 18u IPv4 23024 0t0 UDP 127.0.0.53:domain
|
||||||
systemd-r 347 systemd-resolve 18u IPv4 13446 0t0 TCP localhost:domain (LISTEN)
|
systemd-r 1797 systemd-resolve 19u IPv4 23025 0t0 TCP 127.0.0.53:domain (LISTEN)
|
||||||
systemd-r 347 systemd-resolve 19u IPv4 13447 0t0 UDP localhost:domain
|
systemd-r 1797 systemd-resolve 20u IPv4 23026 0t0 UDP 127.0.0.54:domain
|
||||||
systemd-r 347 systemd-resolve 20u IPv4 13448 0t0 TCP localhost:domain (LISTEN)
|
systemd-r 1797 systemd-resolve 21u IPv4 23027 0t0 TCP 127.0.0.54:domain (LISTEN)
|
||||||
```
|
```
|
||||||
|
|
||||||
当前系统 `53` 端口被 `systemd-resolved.service` 占用,会导致设置 DNS 服务时监听端口失败。
|
当前系统 `53` 端口被 `systemd-resolved.service` 占用,会导致设置 DNS 服务时监听端口失败。
|
||||||
|
|||||||
Reference in New Issue
Block a user