昨天斷電,今早上過來以後發現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