Affected files: 21.01. Linux/00. 重灌基本步驟.md 21.01. Linux/CLI/cut.md 21.01. Linux/CLI/scp.md 21.01. Linux/CLI/systemd.md 21.01. Linux/CLI/timedatectl.md 21.01. Linux/Docker.md 21.01. Linux/NUT.md 21.01. Linux/Watchtower.md 21.01. Linux/_Map.canvas 21.01. Linux/crontab.md 21.01. Linux/fstab.md 21.01. Linux/iptable.md 21.01. Linux/journalctl.md 21.01. Linux/lsblk.md 21.01. Linux/lvm.md 21.01. Linux/lxc.md 21.01. Linux/smb client.md 21.01. Linux/更改時區.md 21.01. Linux/架站/Apache.md 21.01. Linux/架站/Gitea.md 21.01. Linux/架站/Grafana-prometheus.md 21.01. Linux/架站/Grafana.md 21.01. Linux/架站/Nextcloud.md 21.01. Linux/架站/Pelican blog.md 21.01. Linux/架站/Proxmox VE.md 21.01. Linux/架站/Storj.md 21.01. Linux/架站/_Server Map.canvas 21.01. Linux/架站/filebrowser.md 21.01. Linux/架站/freshrss.md 21.01. Linux/架站/minecraft.md 21.01. Linux/硬碟操作.md 21.01. Linux/開機自動掛載模組(modprobe nct6683).md 21.01. Linux/開機自動掛載硬碟.md 21.01. OS/21.01. Linux/vnc.md
30 lines
666 B
Markdown
30 lines
666 B
Markdown
---
|
||
tags:
|
||
aliases:
|
||
date: 2025-11-26
|
||
time: 14:23:23
|
||
description:
|
||
---
|
||
|
||
## 刪除某一個 port
|
||
以 port `:3` 為例。
|
||
用 `lsof` 查詢 port
|
||
```shell
|
||
> sudo lsof -i TCP:5903
|
||
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
|
||
Xtigervnc 2205039 juiwen 9u IPv4 20394056 0t0 TCP *:5903 (LISTEN)
|
||
Xtigervnc 2205039 juiwen 10u IPv6 20394057 0t0 TCP *:5903 (LISTEN)
|
||
```
|
||
|
||
kill PID:
|
||
```shell
|
||
kill -9 1364
|
||
```
|
||
|
||
重開 port:
|
||
```shell
|
||
/usr/bin/vncserver :3 -geometry 1920x1080 -depth 24 -localhost=no
|
||
```
|
||
|
||
|
||
# 參考來源 |