fix: 解决访问没有埋点的问题
This commit is contained in:
@@ -4,6 +4,22 @@
|
||||
|
||||
本项目使用的 是 `yunwuxin/think-cron` 包,该包提供了丰富的功能,包括任务调度、任务执行、任务状态管理等。该包支持多种任务类型,如固定任务、循环任务、一次性任务等,同时支持多种执行周期,如分钟、小时、天、周、月等。
|
||||
|
||||
## 手动启动计划任务
|
||||
|
||||
``` bash
|
||||
############ 查看 cron 进程
|
||||
## 查看 cron 进程
|
||||
ps aux | grep "think cron:schedule"
|
||||
# # 精确查找
|
||||
pgrep -f "think cron:schedule"
|
||||
# # 查看进程树
|
||||
pstree -p | grep -i cron
|
||||
|
||||
## 启动 cron 任务
|
||||
# 守护进程模式
|
||||
nohup php think cron:schedule > /dev/null 2>&1 &
|
||||
#######################################
|
||||
```
|
||||
|
||||
|
||||
## 计划任务管理
|
||||
|
||||
37
docs/deploy.md
Normal file
37
docs/deploy.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# 部署说明
|
||||
|
||||
|
||||
## 自动部署
|
||||
|
||||
### 创建部署包
|
||||
|
||||
```bash
|
||||
# 代码示例
|
||||
cd /d/projects/shop-projects/backend
|
||||
/d/phpstudy_pro/Extensions/php/php7.4.3nts/php.exe ./scripts/generate_deploy_package.php --source ./src --target /d/projects/zips/php后端源码/2025-11-10 --output update.zip
|
||||
|
||||
# Linux
|
||||
php ./scripts/generate_deploy_package.php --source ./src --target ./ftp-src --output update.zip
|
||||
```
|
||||
|
||||
## 部署流程
|
||||
|
||||
``` bash
|
||||
# 部署流程
|
||||
cd /var/www/all_source
|
||||
# 测试本地部署
|
||||
php ./scripts/deploy.php --zip update.zip --target ./ftp-src --dry-run --verbose
|
||||
|
||||
# 实际部署
|
||||
php ./scripts/deploy.php --zip update.zip --target ./ftp-src --verbose
|
||||
```
|
||||
|
||||
|
||||
|
||||
### 真实环境部署
|
||||
|
||||
|
||||
``` base
|
||||
cd /www/tools
|
||||
php ./deploy.php --zip update.zip --target /www/wwwroot/myweb/newfwq --dry-run --verbose
|
||||
```
|
||||
Reference in New Issue
Block a user