系统相关
首页 > 系统相关> > Ubuntu18关机时出现 A stop job is running for ...导致关机很慢

Ubuntu18关机时出现 A stop job is running for ...导致关机很慢

作者:互联网


1. 修改/etc/systemd/system.conf

sudo vim /etc/systemd/system.conf

2. 找到一下两行

#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s

3. 取消注释并修改为

DefaultTimeoutStartSec=10s
DefaultTimeoutStopSec=10s

4. 立即生效

sudo systemctl daemon-reload


标签:...,90s,sudo,stop,DefaultTimeoutStartSec,system,conf,10s,关机时
来源: https://www.cnblogs.com/convict/p/14876525.html