generated from junxnone/twiki
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 - | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 - |