關閉→
當前位置:知科普>IT科技>apachectl命令詳解 - linux

apachectl命令詳解 - linux

知科普 人氣:3.03W

1、apachectl命令簡介:apachectl指令是apache http服務器的前端控制程序,可以協助控制apache服務的守護進程httpd,此命令的適用範圍:RedHat、RHEL、Ubuntu、CentOS、SUSE、openSUSE、Fedora。

2、補充説明:

apachectl是slackware內附Apache HTTP服務器的script文件,可供管理員控制服務器,但在其他Linux的Apache HTTP服務器不一定有這個文件。

3、語法:

apachectl [configtest][fullstatus][graceful][help][restart][start][status][stop] 

4、參數: 

configtest檢查設置文件中的語法是否正確;

fullstatus顯示服務器完整的狀態信息;

grace補充説明。

舉例:

運行apache配置文件測試 ,輸入命令:

[root@localhost ~]# apachectl configtest            //配置文件檢測,沒有錯誤

httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for 

ServerName

Syntax OK

linux apachectl命令詳解

TAG標籤:#apachectl #linux #命令 #