1、查看服务器正在运行的服务
systemctl list-units --type=service --state=running
2、查看服务器配置的开机自启服务
systemctl list-unit-files --type=service --state=enabled
systemctl list-units --type=service --state=running
systemctl list-unit-files --type=service --state=enabled