指令名称     centos 6       centos 7
启动服务     service httpd start   systemctl start httpd.service
关闭服务     service httpd stop   systemctl stop httpd.service
重启服务     service httpd restart  systemctl restart httpd.service
查看服务状态   service httpd status   systemctl status httpd.service
设置服务开机启动 chkconfig httpd on  systemctl enable httpd.service
设置服务开机关闭 chkconfig httpd off  systemctl disable httpd.service
查看服务开机启动 chkconfig –list     systemctl list-units –type=service

相关文章:

  • 2022-02-27
  • 2021-05-30
  • 2021-09-22
  • 2021-12-19
  • 2021-05-19
猜你喜欢
  • 2021-10-03
  • 2021-11-17
  • 2021-11-14
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2021-12-06
相关资源
相似解决方案