[Email protected] ~]#/ETC/INIT.D/HTTPD
USAGE:HTTPD {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help| Configtest}
[email protected] ~]# which apachectl
/usr/sbin/apachectl
[Email protected] ~]# apachectl-h
Usage:/usr/sbin/httpd [-D name] [-D directory] [-f file]
[-C "directive"] [-C "directive"]
[-K Start|restart|graceful|graceful-stop|stop]
[-V] [-V] [-h] [-l] [-l] [-T] [-S]
Options:
-D Name:define a name for use in <ifdefine name> directives
-D directory:specify an alternate initial serverroot
-F file:specify an alternate serverconfigfile
-c "directive": process directive before reading config files
-c "directive": process directive after reading config files
-e level:show startup errors of level (see LogLevel)
-e File:log Startup errors to File
-v:show Version number
-v:show Compile Settings
-h:list available command line options (this page)
-l:list compiled in Modules
-l:list Available Configuration directives
-t-d dump_vhosts:show parsed settings (currently only vhost settings)
-s:a synonym For-t-d dump_vhosts
-t-d dump_modules:show All Loaded MODULES
-m:a synonym For-t-d dump_modules
-t:run syntax check for config files
[Email protected] ~]# apachectl-v
Server version:apache/2.2.3
Server built:oct 16 2013 12:18:29
Server ' s Module Magic number:20051115:3
Server loaded:apr 1.2.7, Apr-util 1.2.7
Compiled using:apr 1.2.7, Apr-util 1.2.7
Architecture:64-bit
Server Mpm:prefork
Threaded:no
Forked:yes (variable process count)
Server compiled with ....
-D apache_mpm_dir= "Server/mpm/prefork"
-D Apr_has_sendfile
-D Apr_has_mmap
-D Apr_have_ipv6 (ipv4-mapped addresses enabled)
-D Apr_use_sysvsem_serialize
-D Apr_use_pthread_serialize
-D single_listen_unserialized_accept
-D Apr_has_other_child
-D Ap_have_reliable_piped_logs
-D dynamic_module_limit=128
-D httpd_root= "/ETC/HTTPD"
-D suexec_bin= "/usr/sbin/suexec"
-D default_pidlog= "Run/httpd.pid"
-D default_scoreboard= "Logs/apache_runtime_status"
-D default_lockfile= "Logs/accept.lock"
-D default_errorlog= "Logs/error_log"
-D ap_types_config_file= "Conf/mime.types"
-D server_config_file= "conf/httpd.conf"
This article is from "Try to be brave" blog, declined reprint!
Yum HTTP Research