如何在CentOS 7中启动⼀停止⼀重启服务

2025-04-13 06:46:26
推荐回答(1个)
回答1:

systemctl restart httpd #重启
systemctl start httpd #启动
systemctl stop httpd #停止
systemctl enable httpd #加入开机启动
systemctl disable httpd #从开机启动中删除
systemctl status httpd #查看服务状态
systemctl list-unit-files #查看所有已安装服务