检查 Apache 配置文件的语法
在尝试重新启动 Apache 时,由于配置文件出现问题,导致无法在停止后启动… 这种情况不好,所以最好在执行之前养成语法检查的习惯。
apachectl configtest
apachectl -t # 同じ
- 参考: apachectl – Apache HTTP Server Control Interface
在尝试重新启动 Apache 时,由于配置文件出现问题,导致无法在停止后启动… 这种情况不好,所以最好在执行之前养成语法检查的习惯。
apachectl configtest
apachectl -t # 同じ