按照BAE的官方文档,修改了Redis的相关信息(如下),还是无法成功,具体见下面的错误信息,貌似还是无法连接上。请大牛指点。
public function __construct(array $options = array())
{
……
//BAE add
$result = $this->_redis->auth($server['user'] . "-" . $server['password'] . "-" . $server['dbname']);
if ($result === false) {
die($redis->getLastError());
$this->_redis = null;
}
else
{
$this->_redis->flushdb();
}
……}
Application error
------
Message: Connection lost
------
Build: 3.1.2 20150409
PHP Version: 5.4.20-1+debphp.org~precise+1
User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36
------
exception 'RedisException' with message 'Connection lost' in /home/bae/app/system/Zend/Cache/Backend/Redis.php:268
Stack trace:
#0 /home/bae/app/system/Zend/Cache/Backend/Redis.php(268): Redis->delete('item_tags__fqol...')
#1 /home/bae/app/system/Zend/Cache/Core.php(390): Zend_Cache_Backend_Redis->save('a:8:{s:8:"group...', 'fqolxlezqdnqron...', Array, '600')
#2 /home/bae/app/system/core/cache.php(105): Zend_Cache_Core->save(Array, 'fqolxlezqdnqron...', Array, '600')
#3 /home/bae/app/models/account.php(1203): core_cache->set('user_group_1', Array, '600', 'users_group')
#4 /home/bae/app/models/account.php(1308): account_class->get_user_group_by_id('1')
#5 /home/bae/app/system/aws_controller.inc.php(36): account_class->get_user_group('1', '5')
#6 /home/bae/app/system/aws_app.inc.php(212): AWS_CONTROLLER->__construct()
#7 /home/bae/app/system/aws_app.inc.php(60): AWS_APP::create_controller('main', '/home/bae/app/a...')
#8 /home/bae/app/index.php(23): AWS_APP::run()
#9 {main}
阅读全文
收起全文