第 11 屆 iThome 鐵人賽
分享至
# systemctl list-units --type target
# systemctl get-default
切換運作層級至文字模式(runlevel 3) # systemctl isolate multi-user.target
# systemctl isolate multi-user.target
若要查看某個服務現在執行的系統層級,可使用下列指令 systemctl show -p WantedBy service-name
systemctl show -p WantedBy service-name
服務的runlevel有下面這些:
對照chkconfig的runlevel如下:
IT邦幫忙