命令来检查Apache服务器configuration文件的有效性

我正在寻找一个命令,检查在Apache服务器(Debian和RHEL发行版中的configuration文件的有效性 – 需要重新启动之前,所以不会有停机时间)。 我不能记得它是什么,手册页/快速谷歌search没有答案。 谢谢。

检查: http : //httpd.apache.org/docs/2.2/programs/apachectl.html

apachectl configtest 

另一种方法是httpd -t 。 因此,它在Apache的Windows版本中可用。 检查http://httpd.apache.org/docs/2.4/programs/httpd.html

apachectl configtest是正确的答案。 不幸的是我有一个窗口安装缺lessapachectl。 这里调用httpd也有帮助。