วิธีติดตั้ง netstat บน CentOS7


ติดตั้ง netstat  บน CentOS7 

สำหรับคนที่ติดตั้ง CentOS 7 แล้ว แต่เป็นแบบ Minimal คือ ตัวเลือกแบบเล็กที่สุด
แต่ต้องการใช้  netstat  ซึ่งเป็น Software ที่ใช้ในการ แสดงข้อมูล  การเชื่อมต่อเครือข่าย
Routing Tables, interface statistic, masquerade connections, and multicast membershiops
เป็นต้น :)  ศึกษาการใช้งานเพิ่มเติมได้ด้วยการ  คลิกที่นี่ !!:)  

มาดูขั้นตอนการติดตั้งกันดีกว่า...ง่ายๆ เพียงแค่พิมพ์  : yum whatprovides netstat  ดังภาพเลยครับ

1
2
3
4
5
6
7
8
9
10
[root@localhost~]# yum whatprovides netstat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.secureax.com
 * extras: centos.mirror.secureax.com
 * updates: centos.mirror.secureax.com
net-tools-2.0-0.17.20131004git.el7.x86_64 : Basic networking tools
Repo        : @base
Matched from:
Filename    : /usr/bin/netstat
จากนั้นใช้คำสั่ง sudo yum install net-tools netstat นี้เองเป็นส่วนหนึ่งของซอฟต์แวร์ที่เีรยกว่า net-tools ดังภาพที่2

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[root@localhost~]# sudo yum install net-tools
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.secureax.com
 * extras: centos.mirror.secureax.com
 * updates: centos.mirror.secureax.com
Resolving Dependencies
--> Running transaction check
---> Package net-tools.x86_64 0:2.0-0.17.20131004git.el7 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
================================================================================
 Package         Arch         Version                          Repository  Size
================================================================================
Installing:
 net-tools       x86_64       2.0-0.17.20131004git.el7         base       304 k
 
Transaction Summary
================================================================================
Install  1 Package
 
Total download size: 304 k
Installed size: 917 k
Is this ok [y/d/N]: y
Downloading packages:
net-tools-2.0-0.17.20131004git.el7.x86_64.rpm              | 304 kB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : net-tools-2.0-0.17.20131004git.el7.x86_64                    1/1
  Verifying  : net-tools-2.0-0.17.20131004git.el7.x86_64                    1/1
 
Installed:
  net-tools.x86_64 0:2.0-0.17.20131004git.el7
 
Complete!

เพียงแค่นี้ก็สามารถใช้คำสั่ง [root@localhost~]# netstat ได้แล้ววครับบ

โดยสามารถศึกษารูปแบบการใช้งานคำสั่งเพิ่มเติมด้วยการพิมพ์ คำสั่ง  [root@localhost~]# man netstat ได้เลย!
ดังภาพที่ 3



ขอบคุณแหล่งข้อมูล : cyruslab.net

Share this

Related Posts