linux异常,samba共享目录看不到文件,本机访问不了自己的mysql,nginx访问提示找不到

昨天断电,今早上过来之后发现web异常,上去开启了nginx、php-fpm、mysql等,发现请求发现异常~

nginx错误日志提示

*82 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream

Memcache的请求也异常

PHP Notice:  MemcachePool::get(): Server 192.168.17.145 (tcp 11211, udp 0) failed with: Permission denied (13)

mysql请求提示

权限问题~~~~

一头雾水,之前好好的突然怎么就~~~~

后面发现原来是重启以后开启了selinux所致~

关闭selinux即可

查看selinux状态

/usr/sbin/sestatus -v

临时关闭

setenforce 0  

永久关闭需要修改

/etc/selinux/config 文件

将SELINUX=enforcing改为SELINUX=disabled



你可能感兴趣的:(linux异常,samba共享目录看不到文件,本机访问不了自己的mysql,nginx访问提示找不到)