重新启动linux中的httpd服务

如题所述

不同的Linux发行版,对于系统服务管理的方法不同。目前主要有两种:

1 System V init script 相关的命令有service,chkconfig与init.d脚本;

2 Systemd

拿RHEL或CentOS来说,版本7以前的发行版本使用Sys V,而从7以后则改用Systemd。

两种方法重启httpd服务的方法如下:

1 System V

# service httpd restart

2 Systemd

# systemctl restart httpd

温馨提示:答案为网友推荐,仅供参考
相似回答