今天在centos6.9上搭建了LNMP环境,然后运行项目遇到如下错误:
PHP Warning: Redis::connect(): connect() failed: Permission denied in xxx
解决如下
/usr/sbin/setsebool httpd_can_network_connect=1
看到stackoverflow这样解释,原文地址:
今天在centos6.9上搭建了LNMP环境,然后运行项目遇到如下错误:
PHP Warning: Redis::connect(): connect() failed: Permission denied in xxx
解决如下
/usr/sbin/setsebool httpd_can_network_connect=1
看到stackoverflow这样解释,原文地址: