因為停電,導致服務器重啟,之后就出現了這個問題,像是某個服務沒有開啟,網上查了下,說是反向代理 。
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// [ 應用入口文件 ]
namespace think;
define('DS', DIRECTORY_SEPARATOR);
require __DIR__ . '/../vendor/autoload.php';
// 執行HTTP應用并響應
$http = (new App())->http;
$response = $http->run();
$response->send();
$http->end($response);
數據獲取失敗:SQLSTATE[HY000] [2002] Connection refused
后臺可以訪問正常,小程序也訪問正常,就是 pc 首頁進不去,提示下載 。