chattr +i ./classmap.php 禁止修改
//public文件的index.php 被篡改,然后 终端运行下面命令
<?php
// ThinkPHP666666 入口
require __DIR__ . '/../vendor/autoload.php';
$app = new \think\App();
$http = $app->http;
$response = $http->run();
$response->send();
$http->end($response);
//tp6 需要执行一下,不然也找不到入口
composer dump-autoload
或者 运行:composer install --no-dev 也可以恢复