ติดตั้ง 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 netstatLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: centos.mirror.secureax.com * extras: centos.mirror.secureax.com * updates: centos.mirror.secureax.comnet-tools-2.0-0.17.20131004git.el7.x86_64 : Basic networking toolsRepo : @baseMatched from:Filename : /usr/bin/netstat |
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-toolsLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: centos.mirror.secureax.com * extras: centos.mirror.secureax.com * updates: centos.mirror.secureax.comResolving Dependencies--> Running transaction check---> Package net-tools.x86_64 0:2.0-0.17.20131004git.el7 will be installed--> Finished Dependency ResolutionDependencies Resolved================================================================================ Package Arch Version Repository Size================================================================================Installing: net-tools x86_64 2.0-0.17.20131004git.el7 base 304 kTransaction Summary================================================================================Install 1 PackageTotal download size: 304 kInstalled size: 917 kIs this ok [y/d/N]: yDownloading packages:net-tools-2.0-0.17.20131004git.el7.x86_64.rpm | 304 kB 00:00Running transaction checkRunning transaction testTransaction test succeededRunning 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/1Installed: net-tools.x86_64 0:2.0-0.17.20131004git.el7Complete! |
เพียงแค่นี้ก็สามารถใช้คำสั่ง [root@localhost~]# netstat ได้แล้ววครับบ
ดังภาพที่ 3
ขอบคุณแหล่งข้อมูล : cyruslab.net