Base 包
安装包含本地参考和全部已发布模式的完整包。
install doctordoctor如果同一个 lil-terminal 在两个主机账户上的表现不同,先运行 platform、extensions、files、repo 或 security。
doctor [group] [-q|-j]doctor检查全部项目
doctor platform显示 PHP、SAPI、限制、会话和 OPcache 检查
doctor extensions显示 PHP 扩展检查
doctor files检查项目路径、权限和存储
doctor repo检查 lil 仓库
doctor security检查 HTTPS、授权和 Cookie
-q仅显示警告和错误
-j返回机器可读的 JSON
可直接在页面中运行预先准备的示例。结果已预先生成并在浏览器中显示;服务器不会执行任何终端命令。
安装当前兼容版本。完整功能请选择 Base,精简包请选择 Minimum;已安装模块的更新请使用 upgrade。
Base 与 Minimum 是同一当前模块版本的两个包。
安装包含本地参考和全部已发布模式的完整包。
install doctor安装精简包。该包不包含本地参考;
install doctor -m安装这个确切的已发布版本。
install doctor -v 1.1.3让 upgrade 检查兼容性,仅在需要时替换已安装块。
upgrade doctor删除扩展块,不影响核心和其他模块。
install doctor -u示例可复制,但网站不会执行。请先检查路径、权限和破坏性选项。
cd \sandbox | doctor files | doctor -qfiles +
permissions +
storage +
+doctor platformPLATFORM
+ PHP 8.x fpm-fcgi
+ memory 512M
+ execution 60 s
+ session available
OK 4
WARN 0
FAIL 0doctor extensionsEXTENSIONS
+ json loaded
+ curl loaded
+ openssl loaded
! imagick optional
OK 3
WARN 1
FAIL 0doctor filesFILES
+ lil sandbox/lil.php [w]
+ cwd sandbox [w]
+ base sandbox [w]
+ extensions sandbox/.lil.php [w]
OK 4
WARN 0
FAIL 0doctor repoREPOSITORY
+ endpoint https://repo.lil.dog
+ api 1.23
+ installer latest
OK 3
WARN 0
FAIL 0doctor securitySECURITY
+ https enabled
+ authorization enabled
! cookie Secure off
OK 2
WARN 1
FAIL 0doctor -qEXTENSIONS
! imagick optional
SECURITY
! cookie Secure off
OK 0
WARN 2
FAIL 0doctor -j{
\"summary\": {\"ok\": 39, \"warn\": 2, \"fail\": 0},
\"checks\": [ ... ]
}doctor unknown?