feat: delete
This commit is contained in:
@@ -634,6 +634,28 @@ PHP「禁用函数」含 `putenv`。在 PHP 8.2 设置里移除后重试。
|
||||
|
||||
|
||||
|
||||
### 后台构建失败:`Tips from BT security !!!` / `Killed` / `import py7zr`
|
||||
|
||||
`www` 跑 Python 被 **堡塔防入侵** 杀掉(系统加固还会把 `python3.10` / `*.so` 执行位扒掉)。PHP-FPM 建渠道也是 `www`,所以后台会同样失败。
|
||||
|
||||
1. 软件商店 → **堡塔防入侵** → 打开 `www` 的拦截记录,把下面路径加白(从拦截日志里复制「命令路径」,不要自己猜):
|
||||
|
||||
```text
|
||||
/www/wwwroot/coruna-lab/channel-builder-new/.venv/bin/python
|
||||
/www/wwwroot/coruna-lab/channel-builder/.venv/bin/python
|
||||
/usr/bin/python3.10
|
||||
/usr/bin/python3
|
||||
```
|
||||
|
||||
2. 安全 → **系统加固**:排除 `/www/wwwroot/coruna-lab`;不要把系统 Python 标成「禁止执行」。
|
||||
3. 加白后用同一条命令验证,必须打印 `ok`,不能再出现 `Tips from BT security`:
|
||||
|
||||
```bash
|
||||
sudo -u www /www/wwwroot/coruna-lab/channel-builder-new/.venv/bin/python -c 'import py7zr; print("ok")'
|
||||
```
|
||||
|
||||
临时关掉防入侵能立刻验证是不是它在杀进程;验证完再开,靠白名单维持。不要用绕过手段躲拦截。
|
||||
|
||||
### 后台新建「新版」渠道失败:`请先在 .env 配置 XXBB_CHANNEL_C`
|
||||
|
||||
按 **§1.4** 执行 `php artisan xxbb:build --random-c`,把输出的 `XXBB_CHANNEL_C` 写入 `.env`,再 `config:clear`。确认 `channel-builder-new/.venv` 已安装。
|
||||
|
||||
Reference in New Issue
Block a user