=====启动或关闭 Apache
$ sudo service httpd start|stop
$ sudo /etc/rc.d/init.d/httpd start|stop
$ apachectl stop|start
=====日志文件默认路径
说明:CentOS-6.4 Apache 用 yum 安装
/var/log/httpd
=====动态查看日志文件
$ tail -f /var/log/httpd/error_log
虚拟主机 "www.hwx.com"(跟 VirtualHost 设置有关)
$ ls /var/log/httpd/www.hwx.com-error_log