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
|
2 ) Restart Service
|
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