Skip to content

Commit

Permalink
Add new comment
Browse files Browse the repository at this point in the history
  • Loading branch information
junxnone committed Sep 23, 2024
1 parent 5d2bf74 commit 2b09f8e
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/0133_Tools_OS_Port.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
Title | Tools OS Port
-- | --
Created @ | `2024-09-23T14:51:25Z`
Updated @| `2024-09-23T14:51:25Z`
Labels | ``
Edit @| [here](https://github.com/junxnone/linux/issues/133)

---
# 端口占用

## lsof

```
sudo lsof -i:5173
```

```
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
docker-pr 778724 root 4u IPv4 13546779 0t0 TCP *:5173 (LISTEN)
docker-pr 778731 root 4u IPv6 13573422 0t0 TCP *:5173 (LISTEN)
```

## netstat

```
netstat -tunlp|grep 5173
```

```
tcp 0 0 0.0.0.0:5173 0.0.0.0:* LISTEN -
tcp6 0 0 :::5173 :::* LISTEN -
```
27 changes: 27 additions & 0 deletions docs/bk/0133_Tools_OS_Port.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----

| Title | Tools OS Port |
| --------- | ---------------------------------------------------- |
| Created @ | `2024-09-23T14:51:25Z` |
| Updated @ | `2024-09-23T14:51:25Z` |
| Labels | \`\` |
| Edit @ | [here](https://github.com/junxnone/linux/issues/133) |

-----

# 端口占用

## lsof

sudo lsof -i:5173

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
docker-pr 778724 root 4u IPv4 13546779 0t0 TCP *:5173 (LISTEN)
docker-pr 778731 root 4u IPv6 13573422 0t0 TCP *:5173 (LISTEN)

## netstat

netstat -tunlp|grep 5173

tcp 0 0 0.0.0.0:5173 0.0.0.0:* LISTEN -
tcp6 0 0 :::5173 :::* LISTEN -

0 comments on commit 2b09f8e

Please sign in to comment.