install path of http server: /depot/applications/apache2
1.startup and stop
1.1.use config-file of httpd.conf
startup directive is:
/depot/applications/apache2/bin/httpd -k start
stop directive is:
/depot/applications/apache2/bin/httpd -k stop
also stop:
/depot/applications/apache2/bin/httpd -k graceful-stop
The graceful signal causes the parent process to advise the children to exit after their current request(or to exit immediately if they're not serving anything).
1.2.use new config-file: httpd_jf.conf
e.g.config file: /depot/applications/apache2/conf/httpd_jf.conf(filename is customized and file can be placed anywhere)
so, startup directive is:
/depot/applications/apache2/bin/httpd -f /depot/applications/apache2/conf/httpd_jf.conf
stop directive is:
/depot/applications/apache2/bin/httpd -f /depot/applications/apache2/conf/httpd_jf.conf -k stop
1.3.issue
use customize config-file can startup several httpd-conf:
e.g.
/depot/applications/apache2/bin/httpd -f /depot/applications/apache2/conf/httpd_jf.conf/depot/applications/apache2/bin/httpd -f /depot/applications/apache2/conf/httpd_au.conf
2.restart
/depot/applications/apache2/bin/httpd -k restart
or
/depot/applications/apache2/bin/httpd -f /depot/applications/apache2/conf/httpd_jf.conf -k restart
本文详细介绍了ApacheHTTP服务器的启动、停止及重启方法,并提供了使用默认配置文件httpd.conf及自定义配置文件的具体指令,帮助读者更好地管理和维护Apache服务器。
140

被折叠的 条评论
为什么被折叠?



