From 03435c7aa137c21b72f6a7cebe15c1b583401af4 Mon Sep 17 00:00:00 2001 From: "LEGION-R9000P\\12241" Date: Mon, 13 Mar 2023 00:20:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_posts/Linux.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/_posts/Linux.md b/source/_posts/Linux.md index c929af5..b5f6fea 100644 --- a/source/_posts/Linux.md +++ b/source/_posts/Linux.md @@ -130,6 +130,17 @@ systemctl status mysqld Mysql:mysqld systemctl status network +### 网络状态: + +```shell +# -l或--listening 显示监控中的服务器的Socket +# -n或--numeric 直接使用IP地址,而不通过域名服务器。 +# -p或--programs 显示正在使用Socket的程序识别码和程序名称。 +netstat -lnp | grep 8080 +``` + + + ## 文件详情:(以home目录为例) d:说明当前文件是一个目录(- 代表的是文件)