linux如何重启apache

以上都很好,但是我个人使用httpd-krestart的关键是找到httpd文件。
[root@testbin]#httpdrestart-bash:httpd:commandnotfound显然bash在路径指向的目录中找不到httpd。
尝试找到它并使用绝对路径。
例如我们这里是/home/service/Apache/bin/httpd-krestart