linux下systemctl命令整理(以apache为例)
#设置开机启动systemctl enable httpd.service#禁止开机启动systemctl disable httpd.service#查看服务状态systemctl status httpd.service#开启服务systemctl start httpd.service#关闭服务systemctl stop httpd.service
·
#设置开机启动
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
更多推荐
已为社区贡献1条内容
所有评论(0)