phpRedisAdmin Permission denied
phpRedisAdmin Permission denied
ReliefZkk 发表于4年前
phpRedisAdmin Permission denied
  • 发表于 4年前
  • 阅读 627
  • 收藏 1
  • 点赞 0
  • 评论 0
摘要: phpRedisAdmin Permission denied 解决方案

[Fri Jul 05 00:37:10 2013] [error] [client 172.1.4.96] PHP Fatal error: Uncaught exception ‘Predis\Connection\ConnectionException’ with message ‘Permission denied [tcp://172.1.3.222:6379]‘ in /var/www/html/phpRedisAdmin/predis/lib/Predis/Connection/AbstractConnection.php:139\nStack trace:\n#0 /var/www/html/phpRedisAdmin/predis/lib/Predis/Connection/StreamConnection.php(93): Predis\Connection\AbstractConnection->onConnectionError(‘Permission deni…’, 13)\n#1 /var/www/html/phpRedisAdmin/predis/lib/Predis/Connection/StreamConnection.php(69): Predis\Connection\StreamConnection->tcpStreamInitializer(Object(Predis\Connection\ConnectionParameters))\n#2 /var/www/html/phpRedisAdmin/predis/lib/Predis/Connection/AbstractConnection.php(95): Predis\Connection\StreamConnection->createResource()\n#3 /var/www/html/phpRedisAdmin/predis/lib/Predis/Connection/StreamConnection.php(141): Predis\Connection\AbstractConnection->connect()\n#4 /var/www/html/phpRedisAdmin/predis/lib/Predis/Connection/AbstractConnection.php(179): Predis\Connection\StreamConnection->connect()\n#5 /var/www/html/phpRedisAdmin/predis in /var/www/html/phpRedisAdmin/predis/lib/Predis/Connection/AbstractConnection.php on line 139

可能是selinux的问题:

解决

[root@mysql01 modules]# vim /etc/selinux/config

[root@mysql01 modules]# cat /etc/selinux/config

This file controls the state of SELinux on the system.

SELINUX= can take one of these three values:

enforcing – SELinux security policy is enforced.

permissive – SELinux prints warnings instead of enforcing.

disabled – SELinux is fully disabled.

SELINUX=disabled

SELINUXTYPE= type of policy in use. Possible values are:

targeted – Only targeted network daemons are protected.

strict – Full SELinux protection.

SELINUXTYPE=targeted [root@mysql01 modules]#

临时关闭:

[root@mysql01 modules]# setenforce 0

共有 人打赏支持
粉丝 11
博文 19
码字总数 4902
×
ReliefZkk
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: