ps -ef|grep httpd 查看http进程
lsof -i:80 查看httpd端口连接
查看error_log
1. cd /usr/local/apache
2. cd logs/
3. tail -25 error_log
4. tail -25 error_log
5. head -30 error_log
检查conf
1. cd conf/
2. ls
3. cat httpd.conf
检查80端口
1. tcpdump -X -s1600 dst port 80
2. tcpdump -X -s1600 src port 80
3. netstat | grep 80
4. lsof -i:80
5. service httpd status
mysql检查端口 配置
1. mysql -hserver3 -uroot
2. lsof -i:3306
3. cd ..
4. ls
5. cd /etc/
6. ls
7. find / -name my.cnf
8. cat /usr/local/mysql/data/my.cnf
9. $
10. mysql