Init Systems — systemd vs SysVinit บน Linux

Init Systems — systemd vs SysVinit บน Linux

Init System คือกระบวนการแรกที่ Linux Kernel เรียกใช้หลัง Boot โดยมี PID 1 และรับผิดชอบในการ Start Service ต่าง ๆ จนระบบพร้อมใช้งาน Linux มี Init System หลักสองระบบที่ควรรู้จักคือ SysVinit ซึ่งเป็นระบบดั้งเดิมที่ใช้ Shell Script และ systemd ที่เข้ามาแทนที่ในปัจจุบันบน Distribution หลักทุกตัว บทความนี

Service Management ด้วย systemctl บน Linux

Service Management ด้วย systemctl บน Linux

systemctl เป็นคำสั่งหลักสำหรับจัดการ Service บน Linux ที่ใช้ systemd เป็น Init System ซึ่งครอบคลุม Distribution หลักอย่าง Ubuntu, Debian, RHEL, Rocky Linux, Fedora และอื่น ๆ systemctl ช่วยให้ Admin สั่ง Start, Stop, Restart, Enable, Disable Service รวมถึงดูสถานะและ Log ได้จากที่เดียว บทความนี้อธิบาย

LINE CHAT