apache mysql红灯_apache mysql 检查方法

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值