昨天断电,今早上过来以后发现web异常,上去开启了nginx、php-fpm、mysql等,发现请求发现异常~
php
nginx错误日志提示mysql
*82 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstreamlinux
Memcache的请求也异常nginx
PHP Notice: MemcachePool::get(): Server 192.168.17.145 (tcp 11211, udp 0) failed with: Permission denied (13)
web
mysql请求提示sql
权限问题~~~~tcp
一头雾水,以前好好的忽然怎么就~~~~php-fpm
后面发现原来是重启之后开启了selinux所致~spa
关闭selinux便可日志
查看selinux状态
/usr/sbin/sestatus -v
临时关闭
setenforce 0