解决方案 修改默认的停止服务的timeout值,这个值存储在/etc/systemd/system.conf。将默认值: DefaultTimeoutStopSec=90s 修改成: DefaultTimeoutStopSec=3s