打印

安装完redis无法使用

安装完redis无法使用

安装完什么都没改,运行php测试脚本,得到以下错误

Warning: Redis::connect(): connect() failed: Connection timed out in /home/wwwroot/default/redis.php on line 3

Fatal error: Uncaught RedisException: Redis server went away in /home/wwwroot/default/redis.php:4 Stack trace: #0 /home/wwwroot/default/redis.php(4): Redis->info() #1 {main} thrown in /home/wwwroot/default/redis.php on line 4

TOP

iptables -L -n 看一下规则
或直接清空规则看一下 https://www.vpser.net/security/linux-iptables.html

TOP