Tìm người dùng chung server

ngokhathuyanh

New member
## Tìm phần của máy chủ

#linux
#máy chủ
#NetWorking
#Địa chỉ IP
#Hải cảng

** Cách tìm chia sẻ của máy chủ **

Trong Linux, bạn có thể tìm thấy chia sẻ của một máy chủ bằng cách sử dụng lệnh sau:

`` `
netstat -tunlp |grep lắng nghe
`` `

Lệnh này sẽ liệt kê tất cả các cổng mở trên máy chủ, cùng với ID quy trình (PID) của quy trình đang nghe trên mỗi cổng.Chia sẻ của máy chủ là tỷ lệ phần trăm thời gian CPU đang được sử dụng bởi quy trình đang nghe trên mỗi cổng.

Để tìm chia sẻ của một cổng cụ thể, bạn có thể sử dụng lệnh sau:

`` `
netstat -tunlp |grep lắng nghe |grep <số cổng>
`` `

Ví dụ: để tìm chia sẻ của cổng 80, bạn sẽ sử dụng lệnh sau:

`` `
netstat -tunlp |grep lắng nghe |GREP 80
`` `

Lệnh này sẽ liệt kê PID của quy trình đang nghe trên cổng 80 và tỷ lệ phần trăm thời gian CPU đang được sử dụng bởi quy trình đó.

**Ví dụ**

Sau đây là một ví dụ về đầu ra của lệnh `netstat`:

`` `
Kết nối Internet hoạt động (chỉ có máy chủ)
Proto Recv-Q Send-Q Địa chỉ địa phương địa chỉ địa chỉ nước ngoài PID/TÊN CHƯƠNG TRÌNH
TCP 0 0 0.0.0.0:22 0.0.0.0:* Nghe 2601/sshd
TCP 0 0 127.0.0.1:80 0.0.0.0:* Nghe 1293/nginx
TCP 0 0 127.0.0.1:443 0.0.0.0:* Nghe 1293/Nginx
`` `

Trong ví dụ này, máy chủ đang nghe trên các cổng 22, 80 và 443. Tỷ lệ của cổng 22 là 0%, tỷ lệ của cổng 80 là 100%và tỷ lệ của cổng 443 là 100%.

**Lời khuyên**

* Để tìm phần của tất cả các cổng trên máy chủ, bạn có thể sử dụng lệnh sau:

`` `
netstat -tunlp
`` `

* Để tìm chia sẻ của một quy trình cụ thể, bạn có thể sử dụng lệnh sau:

`` `
ps aux |grep <tên quá trình>
`` `

* Để tìm tỷ lệ phần trăm thời gian CPU đang được sử dụng bởi một quy trình cụ thể, bạn có thể sử dụng lệnh sau:

`` `
top -b -n 1
`` `
=======================================
## Find the share of the server

#linux
#Server
#NetWorking
#IP address
#Port

**How to Find the Share of a Server**

In Linux, you can find the share of a server by using the following command:

```
netstat -tunlp | grep LISTEN
```

This command will list all of the open ports on the server, along with the process ID (PID) of the process that is listening on each port. The share of the server is the percentage of CPU time that is being used by the process that is listening on each port.

To find the share of a specific port, you can use the following command:

```
netstat -tunlp | grep LISTEN | grep <port number>
```

For example, to find the share of port 80, you would use the following command:

```
netstat -tunlp | grep LISTEN | grep 80
```

This command will list the PID of the process that is listening on port 80, and the percentage of CPU time that is being used by that process.

**Example**

The following is an example of the output of the `netstat` command:

```
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2601/sshd
tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN 1293/nginx
tcp 0 0 127.0.0.1:443 0.0.0.0:* LISTEN 1293/nginx
```

In this example, the server is listening on ports 22, 80, and 443. The share of port 22 is 0%, the share of port 80 is 100%, and the share of port 443 is 100%.

**Tips**

* To find the share of all of the ports on a server, you can use the following command:

```
netstat -tunlp
```

* To find the share of a specific process, you can use the following command:

```
ps aux | grep <process name>
```

* To find the percentage of CPU time that is being used by a specific process, you can use the following command:

```
top -b -n 1
```
 
Join ToolsKiemTrieuDoGroup
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock