xunsearch报错 XSException in XS.php line 2504

已经解决:原来是忘记添加 开机启动了,解决:

sudo vi /etc/rc.d/rc.local   //本地服务器才加sudo

/usr/local/search/bin/xs-ctl.sh start   // 加入启动项

chmod +x /etc/rc.d/rc.local   //权限


安装xunsearch是正常的,在 退出登录 和 重新编辑文章 提交时,出现如下错误:

XSException in XS.php line 2504:Connection refused(C#111, 127.0.0.1:8383)

  1. in XS.php line 2504
  2. at XSServer->connect() in XS.php line 2316
  3. at XSServer->open('127.0.0.1:8383') in XS.php line 2301
  4. at XSServer->__construct('127.0.0.1:8383', object(Xs)) in XS.php line 372
  5. at XS->getIndex() in XS.php line 260
  6. at XSComponent->__get('index') in Search.php line 29
  7. at Search->index() in Search.php line 146
  8. at Search->delete(object(User)) in Search.php line 101
  9. at Search->update(object(User)) in User.php line 50
  10. at User::App\Models\{closure}(object(User))
  11. at call_user_func_array(object(Closure), array(object(User))) in Dispatcher.php line 221
  12. at Dispatcher->fire('eloquent.saved: App\Models\User', array(object(User))) in Model.php line 1650
  13. at Model->fireModelEvent('eloquent.saved: App\Models\User', false) in Model.php line 1485
  14. at Model->finishSave(array()) in Model.php line 1456
  15. at Model->save() in EloquentUserProvider.php line 78
  16. at EloquentUserProvider->updateRememberToken(object(User), 'BHB9MRPKh8pEtL9rHQbGbHXDbRXR8oDvqrUfQGSvIiFJ2z00tp2KQ04Aelsu') in Guard.php line 591
  17. at Guard->refreshRememberToken(object(User)) in Guard.php line 550
  18. at Guard->logout() in UserController.php line 231
  19. at UserController->logout()
  20. at call_user_func_array(array(object(UserController), 'logout'), array()) in Controller.php line 256
  21. at Controller->callAction('logout', array()) in ControllerDispatcher.php line 164
  22. at ControllerDispatcher->call(object(UserController), object(Route), 'logout') in ControllerDispatcher.php line 112
  23. at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
  24. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  25. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  26. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  27. at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 114
  28. at ControllerDispatcher->callWithinStack(object(UserController), object(Route), object(Request), 'logout') in ControllerDispatcher.php line 68
  29. at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\Account\UserController', 'logout') in Route.php line 203
  30. at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
  31. at Route->run(object(Request)) in Router.php line 708
  32. at Router->Illuminate\Routing\{closure}(object(Request))
  33. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  34. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  35. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  36. at Pipeline->then(object(Closure)) in Router.php line 710
  37. at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 674
  38. at Router->dispatchToRoute(object(Request)) in Router.php line 635
  39. at Router->dispatch(object(Request)) in Kernel.php line 236
  40. at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
  41. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
  42. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 50
  43. at VerifyCsrfToken->handle(object(Request), object(Closure))
  44. at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  45. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 49
  46. at ShareErrorsFromSession->handle(object(Request), object(Closure))
  47. at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  48. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
  49. at StartSession->handle(object(Request), object(Closure))
  50. at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  51. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
  52. at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
  53. at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  54. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
  55. at EncryptCookies->handle(object(Request), object(Closure))
  56. at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  57. at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
  58. at CheckForMaintenanceMode->handle(object(Request), object(Closure))
  59. at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
  60. at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  61. at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  62. at Pipeline->then(object(Closure)) in Kernel.php line 122
  63. at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
  64. at Kernel->handle(object(Request)) in index.php line 53


请先 登录 后评论

1 个回答

登峰 - 官方技术支持
擅长:tipask,php,服务器,网站建设

如果是阿里云的话看下阿里云的防火墙策略是否开启了8383端口

请先 登录 后评论