Linux basic commands --- apachectl

apachectl

apachectl command control program is front-end apache http server, you can help control daemon httpd apache services.

Scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.

 

1 , grammar

apachectl  cmd

 

2 , the parameter list

Options

Explanation

start

Start apache httpd daemon

restart

Restart apache httpd daemon

stop

Stop apache httpd daemon

status

Brief information display apache services

graceful

The elegant restart apache service, and restart it is not the same, it does not interrupt http connections currently open and will not close the log immediately

graceful-stop

Elegant stop the apache service, and it does not stop the same, does not interrupt http connections currently open and will not close the log immediately

configtest

Run apache configuration syntax detection

 

3 , examples

1 ) Run apache configuration file test 

[root@localhost ~]# apachectl configtest            //配置文件检测,没有错误

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

Syntax OK 

2 ) Restart Service

 [root@localhost ~]# apachectl restart            //重启

     

 

      Made a study of the Linux platform, now came up with a prototype, you can use and reference

      Link: https: //pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ Password: n7bk 

     081634m8n8t2tmz2te95w5.gif


Guess you like

Origin blog.51cto.com/9888479/2406592