Examly題庫立即開始練習
國小教甄|資訊科技資訊科技115 年第 28 題單選題

某學校使用 Ubuntu Server 架設 Web 伺服器,管理者發現網站無法啟動,執行 systemctl status apache2 顯示服務為 inactive。若要立即啟動服務並設定開機自動啟動,應使用下列哪一組指令?

Astart apache2 與 enable apache2
Bsystemctl start apache2 與 systemctl enable apache2正確答案
Cservice apache2 run 與 chkconfig apache2 on
Dapache2 start 與 apache2 enable
答案與詳解
B
正確答案
在採用 systemd 的 Ubuntu Server 中,管理服務啟動與開機自動執行的標準指令為 systemctl start 與 systemctl enable。

為什麼答案是 B

systemctl 是 systemd 的標準管理工具,start 可立即啟動服務,enable 可設定開機自動啟動,完全符合題目需求。

載入中…

資訊科技 相關題目

想練更多資訊科技考古題?

Examly 收錄 38 萬+ 道歷屆題目,每題都有像這樣的精選詳解。免費下載,立即開練。

黑皮