[TOC]
## apache相關常用的命令
`apachectl -l` # 查看apache安裝的內容
`apachectl -M` # 查看apache安裝的模塊
`lsof -i tcp:80` # 查看80端口情況
`netstat -tunpl|grep 80` # 查看80端口情況
`ps -ef|grep httpd` # 查看httpd進程情況
`curl -I http://192.168.0.200` # 查看http頭信息
## apace服務器修改完配置重啟服務的流程
~~~
apachectl -t # 檢查配置文件
apachectl graceful # 優雅重啟進程
ps -ef |grep httpd # 檢查httpd進程
netstat -tunpl|grep 80 # 檢查apache占用的端口
~~~