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
发布了31 篇原创文章 · 获赞 15 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/dongdingzhuo/article/details/69568110