ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
[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占用的端口 ~~~