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