start & stop อันนี้ใช้บ่อย จำได้
systemctl start name.service
systemctl stop name.service
enabel & disable units
systemctl enable name.service
systemctl disable name.service
check status
systemctl status name.service
ต้องการดู units ทั้งหมด
systemctl list-units --all
ดู state ของ units
systemctl list-units --all --state=inactive
ดูประเภทของ units
systemctl list-units --type=service
ดู All units files
systemctl list-unit-files
อ้างอิง: how to manage systemd
No comments:
Post a Comment