需要開啟定時任務
開啟定時任務方法
在自動收貨,庫存預警等功能使用到
一、Linux寶塔面板和Linux命令行
進入終端 執行啟動或重啟命令
二、windows下開啟定時任務
在項目根目錄中按住shift 鼠標右鍵 在此處打開powershell窗口
執行啟動命令 并保持窗口不要關閉
命令說明
php think timer [ status ] [ --d ]
參數
- status: 狀態start: 啟動stop: 關閉restart: 重啟
- --d : 后臺執行例如:
- php think timer start —d 啟動命令
- php think timer restart —d 重啟命令
- php think timer stop —d 停止命令