#设置开机启动
systemctl enable httpd.service
#禁止开机启动
systemctl disable httpd.service
#查看服务状态
systemctl status httpd.service
#开启服务
systemctl start httpd.service
#关闭服务
systemctl stop httpd.service
#重启服务
systemctl restart httpd.service
原文地址: http://man.linuxde.net/systemctl