คำสั่งเช็คการทำงานของ Services บน Linux

เช็คสถานะการทำงานของ service ทั้งหมด

Krucamper
Krucamper
Sep 3, 2018 · 1 min read
service --status-all
ภาพแสดงหน้า Terminal หลังจาก พิมพ์คำสั่ง service — status-all

จะเห็นว่าระบบจะแสดงรายการ service ทั้งหมดในระบบขึ้นมา และถ้าคุณสังเกตุจะพบว่าหน้า service แต่ล่ะตัวจะมี เครื่องหมาย [+] , [-] อยู่ซึ่ง เครื่องหมาย [+] มีความหมายว่า service นี้มีการทำงานอยู่และเครื่องหมาย[-] มีความหมายว่า service นี้ไม่มีการทำงาน

การเช็คสถานะการทำงานของ service ที่ต้องการ

service [service_name] status

ตัวอย่างการเช็คสถานะการทำงานของ service mysql

service mysql status
ภาพแสดงหน้า Terminal หลังจาก พิมพ์คำสั่ง service mysql status

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade