ตรวจสอบ port ที่ถูกใช้งานใน Ubuntu

6 Sep 2015,
Share: 

เมื่อต้องการตรวจสอบว่า Port ไหนมี การนํามาใช้งานบ้าง สามารถดูได้จากคําสั่งนี้

sudo lsof -i -P | grep -i "listen"

output:

apache2   1985     root    3u  IPv4   6562      0t0  TCP *:80 (LISTEN)
sshd      2187     root    3u  IPv4   5908      0t0  TCP *:22 (LISTEN)
apache2   2206 www-data    3u  IPv4   6562      0t0  TCP *:80 (LISTEN)
apache2   2207 www-data    3u  IPv4   6562      0t0  TCP *:80 (LISTEN)
apache2   2209 www-data    3u  IPv4   6562      0t0  TCP *:80 (LISTEN)
apache2   2211 www-data    3u  IPv4   6562      0t0  TCP *:80 (LISTEN)
apache2   2213 www-data    3u  IPv4   6562      0t0  TCP *:80 (LISTEN)
Xtightvnc 2271     root    0u  IPv4   8201      0t0  TCP *:6001 (LISTEN)
Xtightvnc 2271     root    3u  IPv4   8203      0t0  TCP *:5901 (LISTEN)
mysqld    2592    mysql   10u  IPv4   8367      0t0  TCP localhost:3306 (LISTEN)

Suggestion blogs

ทําความรู้จักกับ Plickers

Plickers (Paper + Clicker) เป็นเครื่องมือที่ช่วยให้อาจารย์ Check ความเข้าใจในเนื้อหาของนักเรียนใน Class ที่ตนเองสอน ได้อย่างง่ายดาย

การอ่านสิทธิ์เข้าใช้งาน file, Directory ใน ubuntu

ระบบ File และ Directory ใน Ubuntu จะมีการกําหนดสิทธิ์การ Read, Write และ Execute ของ User โดยจะสามารถดูได้จากคําสั่งนี้ls -lจะได้ออกมาตามรูปด้านล่างImageจากรูปจะแสดงผลออกมาเป็นข้อมูลต่างๆ แต่ในบทความนี้เราจะสนใจแค่ 2 คอลัมน์ คือในกรอบสีแดง และสีเขียว รายละเอียดมีดังนี้

ปิด serial console raspberry pi

serial console คืออะอะไรraspberry pi จะมี port สําหรับส่งข้อมูล serial หรือที่เค้าเรียกกันว่า UART การส่งข้อมูลแบบนี้จะใช้สายสัญญาณทั้งหมด 2 เส้น คือ TX, RX ใน raspberry pi ทุกตัวจะมี port นี้มาให้ 1 ชุดโดยปกติจะใช้สําหรับเป็น port เชื่อมต่อกับคอมพิวเตอร์ เพื่อเข้าหน้า console โดยไม่ต้อง telnet ผ่าน network(จะใช้สาย USB  to Serial ในการเชื่อมต่อ)


Copyright © 2019 - 2025 thiti.dev |  v1.58.0 |  Privacy policy | 

Build with ❤️ and Astro.

Github profile   Linkedin profile   Instagram   X profile   Nostr   Youtube channel   Telegram   Email contact   วงแหวนเว็บ