使用 systemctl list-unit-files 查看开机启动项
systemctl is-enabled redis.service 是否开机启动
转载于:https://www.cnblogs.com/fanren224/p/8561488.html