M
M
Maxim Kiktev2015-12-28 22:26:19
Laravel
Maxim Kiktev, 2015-12-28 22:26:19

How to fix/run Redis on Laravel?

I downloaded a blog on Laravel from github, I started migrating everything, the backend part works fine, the frontend gives an error

ConnectionException in AbstractConnection.php line 168:
��������� �� �����������, �.�. ������ ������� ������ ������ �� ���������. [tcp://127.0.0.1:6350]
in AbstractConnection.php line 168
at AbstractConnection->onConnectionError('��������� �� �����������, �.�. ������ ������� ������ ������ �� ���������.', '10061') in StreamConnection.php line 97
at StreamConnection->tcpStreamInitializer(object(Parameters)) in StreamConnection.php line 58
at StreamConnection->createResource() in AbstractConnection.php line 94
at AbstractConnection->connect() in StreamConnection.php line 158
at StreamConnection->connect() in AbstractConnection.php line 193
at AbstractConnection->getResource() in StreamConnection.php line 184
at StreamConnection->write('*2 $3 GET $38 laravel:tag:redis_article_page_tag:key ') in StreamConnection.php line 290
at StreamConnection->writeRequest(object(StringGet)) in AbstractConnection.php line 123
at AbstractConnection->executeCommand(object(StringGet)) in PredisCluster.php line 215
at PredisCluster->executeCommand(object(StringGet)) in Client.php line 326
at Client->executeCommand(object(StringGet)) in Client.php line 309
at Client->__call('get', array('laravel:tag:redis_article_page_tag:key')) in RedisStore.php line 54
at RedisStore->get('tag:redis_article_page_tag:key') in TagSet.php line 54
at TagSet->tagId('redis_article_page_tag')
at array_map(array(object(TagSet), 'tagId'), array('redis_article_page_tag')) in TagSet.php line 64
at TagSet->tagIds() in TagSet.php line 74
at TagSet->getNamespace() in TaggedCache.php line 220
at TaggedCache->taggedItemKey('redis_new_article_cache_1_8') in TaggedCache.php line 59
at TaggedCache->get('redis_new_article_cache_1_8') in Article.php line 109
at Article::getNewsArticle('8') in ArticleController.php line 24
at ArticleController->index()
at call_user_func_array(array(object(ArticleController), 'index'), array()) in Controller.php line 256
at Controller->callAction('index', array()) in ControllerDispatcher.php line 164
at ControllerDispatcher->call(object(ArticleController), object(Route), 'index') in ControllerDispatcher.php line 112
at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 114
at ControllerDispatcher->callWithinStack(object(ArticleController), object(Route), object(Request), 'index') in ControllerDispatcher.php line 67
at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\ArticleController', 'index') in Route.php line 203
at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
at Route->run(object(Request)) in Router.php line 712
at Router->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
at Pipeline->then(object(Closure)) in Router.php line 714
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 677
at Router->dispatchToRoute(object(Request)) in Router.php line 639
at Router->dispatch(object(Request)) in Kernel.php line 236
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in NotificationMiddleware.php line 71
at NotificationMiddleware->handle(object(Request), object(Closure))
at call_user_func_array(array(object(NotificationMiddleware), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 50
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 17
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
at Pipeline->then(object(Closure)) in Kernel.php line 122
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 52

how to fix?
Worth Windows, Xampp

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
D', 2015-12-28
@Ne0lite

Obviously you need to install Redis locally.

V
Vyacheslav Barsukov, 2015-12-29
@slavabars

server ip change from 127.0.0.1 to external or 0.0.0.0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question