启动、重启、停止、重载服务以及检查服务
systemctl start httpd.servicesystemctl restart httpd.servicesystemctl stop httpd.servicesystemctl reload httpd.servicesystemctl status httpd.service #检测某服务是否正在运行
启用或禁用
列出所有服务(包括启用的和禁用的)
systemctl list-unit-files --type=service
激活服务并在启动时启用或禁用服务
systemctl is-active httpd.service
systemctl enable httpd.service
systemctl disable httpd.service
监测某服务是否启用
systemctl is-enabled httpd.service
enabled
杀死服务
systemctl kill httpd
