Centos7服务systemctl命令

Centos7的服务启动,停止等命令和以前版本已经不一样了,用全新的命令了,下面主要给大家介绍我经常使用的一些服务的命令

1.httpd开机自启动

systemctl enable httpd.service

2.httpd开机不自启动

systemctl disable httpd.service

3.启动httpd

systemctl start httpd.service

4.停止httpd

systemctl stop httpd.service

5.重启httpd

systemctl restart httpd.service

6.检查httpd状态

systemctl status httpd.service

你可能感兴趣的:(Centos7,CentOS)