rendered paste body[root@localhost ~]# ps ax|grep httpd
4165 pts/1 S+ 0:00 grep httpd
[root@localhost ~]#
[root@localhost ~]# etc/rc.d/init.d/httpd start
bash: etc/rc.d/init.d/httpd: No such file or directory
[root@localhost ~]# apachectrl
bash: apachectrl: command not found
[root@localhost ~]# apachectl
Usage: /usr/sbin/httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|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 : run syntax check for config files
[root@localhost ~]# apachectl -k start
[root@localhost ~]# ps ax|grep httpd
4213 ? Ss 0:00 /usr/sbin/httpd -k start
4214 ? S 0:00 /usr/sbin/httpd -k start
4215 ? S 0:00 /usr/sbin/httpd -k start
4216 ? S 0:00 /usr/sbin/httpd -k start
4217 ? S 0:00 /usr/sbin/httpd -k start
4218 ? S 0:00 /usr/sbin/httpd -k start
4219 ? S 0:00 /usr/sbin/httpd -k start
4220 ? S 0:00 /usr/sbin/httpd -k start
4221 ? S 0:00 /usr/sbin/httpd -k start
4223 pts/1 S+ 0:00 grep httpd