Showing posts with label whatportis. Show all posts
Showing posts with label whatportis. Show all posts

Wednesday, February 10, 2016

how to install whatportis on ubuntu

Whatportis คือ เวลาที่เราอยากรู้ว่าพอร์ตนี้คืออะไร เราก็ต้องอาศัย Google ในการค้นหา แต่ถ้าเครื่องเราออกเน็นไม่ได้ล่ะ? โปรแกรม Whatportis จึงรวบรวมพอร์ตต่าง ๆ ไว้ แต่เราต้องติดตั้งโปรแกรมนี้ซะก่อน

การติดตั้ง Whatportis ในอูบันตู มีวิธีดังนี้
1.ติดตั้ง python-pip ดังนี้
sudo apt-get install python-pip

2.ติดตั้ง Whatportis
sudo pip install whatportis

3.ทดสอบเรียกใช้งานโปรแกรม
sudo whatportis redis

ตัวอย่าง

hades@mail:~/Downloads/whatportis$ sudo whatportis redis
+-------+------+----------+---------------------------------------+
| Name  | Port | Protocol | Description                           |
+-------+------+----------+---------------------------------------+
| redis | 6379 |   tcp    | An advanced key-value cache and store |
+-------+------+----------+---------------------------------------+

ตัวอย่าง

hades@mail:~/Downloads/whatportis$ sudo whatportis mysql --like
+----------------+-------+----------+-----------------------------------+
| Name           |  Port | Protocol | Description                       |
+----------------+-------+----------+-----------------------------------+
| mysql-cluster  |  1186 |   tcp    | MySQL Cluster Manager             |
| mysql-cluster  |  1186 |   udp    | MySQL Cluster Manager             |
| mysql-cm-agent |  1862 |   tcp    | MySQL Cluster Manager Agent       |
| mysql-cm-agent |  1862 |   udp    | MySQL Cluster Manager Agent       |
| mysql-im       |  2273 |   tcp    | MySQL Instance Manager            |
| mysql-im       |  2273 |   udp    | MySQL Instance Manager            |
| mysql          |  3306 |   tcp    | MySQL                             |
| mysql          |  3306 |   udp    | MySQL                             |
| mysql-proxy    |  6446 |   tcp    | MySQL Proxy                       |
| mysql-proxy    |  6446 |   udp    | MySQL Proxy                       |
| mysqlx         | 33060 |   tcp    | MySQL Database Extended Interface |
+----------------+-------+----------+-----------------------------------+


Reference:
hackers959