centos6,centos7启动服务对比

satuo20 1年前 ⋅ 396 阅读
指令名称centos 6centos 7
启动服务service httpd startsystemctl start httpd.service
关闭服务service httpd stopsystemctl stop httpd.service
重启服务service httpd restartsystemctl restart httpd.service
查看服务状态service httpd statussystemctl status httpd.service
设置服务开机启动chkconfig httpd onsystemctl enable httpd.service
设置服务开机关闭chkconfig httpd offsystemctl disable httpd.service
查看服务开机启动chkconfig –listsystemctl list-units –type=service

全部评论: 0

    我有话说: