[0] RedisException in Api.php line 4143

No route to host

  1. }
  2. /*查询当前读者信息
  3. qiangzhi=1强制更新
  4. 保存json到redis,返回数组
  5. */
  6. public function userinfo($qiangzhi=null){
  7. $openid=Session::get('uid');
  8. $redis = new \Redis();
  9. $redis->connect('localhost', 6379);
  10. //强制更新
  11. if(!empty($qiangzhi) && $qiangzhi==1)
  12. {
  13. if(is_numeric($openid)){
  14. $user = Db::table("ien_admin_user")->where("id",$openid)->find();
  15. }else{
  16. $user = Db::table("ien_admin_user")->where("openid",$openid)->find();
  17. }

Call Stack

  1. in Api.php line 4143
  2. at Redis->connect('localhost', 6379) in Api.php line 4143
  3. at Api->userinfo() in Index.php line 652
  4. at Index->detail('154290', null, null)
  5. at ReflectionMethod->invokeArgs(object(Index), ['154290', null, null]) in App.php line 196
  6. at App::invokeMethod([object(Index), 'detail'], []) in App.php line 410
  7. at App::module(['cms', 'index', 'detail'], ['app_debug' => true, 'app_trace' => false, 'app_status' => '', ...], null) in App.php line 295
  8. at App::exec(['type' => 'module', 'module' => ['cms', 'index', 'detail']], ['app_debug' => true, 'app_trace' => false, 'app_status' => '', ...]) in App.php line 123
  9. at App::run() in start.php line 18
  10. at require('/www/wwwroot/novel.h...') in index.php line 31

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

ieasynet_admin_
{ "backurl": "https:\/\/t2109535.chunaixiaowu.net\/index.php\/cms\/index\/detail\/id\/154290.html", "weibobackurl": "\/index.php\/cms\/index\/detail\/id\/154290.html" }

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/novel.hanwujinian.com/index.php
QUERY_STRING
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index.php/cms/index/detail/id/154290.html
DOCUMENT_URI
/index.php/cms/index/detail/id/154290.html
DOCUMENT_ROOT
/www/wwwroot/novel.hanwujinian.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.14.0
REMOTE_ADDR
113.240.89.101
REMOTE_PORT
41231
SERVER_ADDR
192.168.240.252
SERVER_PORT
80
SERVER_NAME
novel.chunaixiaowu.net
REDIRECT_STATUS
200
PATH_INFO
/cms/index/detail/id/154290.html
HTTP_HOST
t2109535.chunaixiaowu.net
HTTP_CLIENT_IP
18.118.0.240
HTTP_REQUEST_ID
d0429f97a9e1c43c7ac47840a8e8b0bf
HTTP_TRAFFIC_SCHEME
http
HTTP_HTTP_VERSION
HTTP/1.1
HTTP_X_SERVERPORT
10480
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_X_PEER
113.240.89.101
HTTP_X_SER
BC102_US-Washington-seattle-1-cache-5, BC9_US-Georgia-atlanta-1-cache-2, BC196_lt-obgp-fujian-xiamen-33-cache-1, BC101_dx-lt-yd-hunan-changsha-12-cache-6
HTTP_CONNECTION
keep-alive
HTTP_X_FORWARDED_FOR
18.118.0.240
PHP_SELF
/index.php/cms/index/detail/id/154290.html
REQUEST_TIME_FLOAT
1713456100.6647
REQUEST_TIME
1713456100
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/novel.hanwujinian.com/application/
THINK_VERSION
5.0.9
THINK_START_TIME
1713456100.6654
THINK_START_MEM
266544
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/novel.hanwujinian.com/thinkphp/
LIB_PATH
/www/wwwroot/novel.hanwujinian.com/thinkphp/library/
CORE_PATH
/www/wwwroot/novel.hanwujinian.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/novel.hanwujinian.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/novel.hanwujinian.com/
EXTEND_PATH
/www/wwwroot/novel.hanwujinian.com/extend/
VENDOR_PATH
/www/wwwroot/novel.hanwujinian.com/vendor/
RUNTIME_PATH
/www/wwwroot/novel.hanwujinian.com/runtime/
LOG_PATH
/www/wwwroot/novel.hanwujinian.com/runtime/log/
CACHE_PATH
/www/wwwroot/novel.hanwujinian.com/runtime/cache/
TEMP_PATH
/www/wwwroot/novel.hanwujinian.com/runtime/temp/
CONF_PATH
/www/wwwroot/novel.hanwujinian.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
PUBLIC_PATH
/public/