問(wèn)題現(xiàn)象:在centos在關(guān)機(jī)或開(kāi)機(jī)時(shí)一直等待,等待時(shí)間久,卡住時(shí)間久

關(guān)機(jī)或開(kāi)機(jī)等待
解決方案一:通過(guò)systemd的設(shè)置項(xiàng)跳過(guò)
# vim?/etc/systemd/system.conf
? ?DefaultTimeoutStartSec=15s
? ?DefaultTimeoutStopSec=15s
#?systemctl daemon-reload
解決方案二:不設(shè)置MySQL為開(kāi)機(jī)啟動(dòng)項(xiàng)
# systemctl disable mysqld.service