Port 6379 is open on the server, and I can successfully run telnet localhost 6379
in SSH.
I tried both Predis/phpredis client library in PHP, but it still does not work:
Problem solved, type:
/usr/sbin/setsebool httpd_can_network_connect=1
By default, SELinux does not allow Apache to make socket connections. More information can be found here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.