## 定時任務
在自動收貨,庫存預警等功能使用到
~~~
php think timer [ status ] [ --d ]
~~~
參數
* status: 狀態
* start: 啟動
* stop: 關閉
* restart: 重啟
* \--d : 后臺執行
例如:
* sudo -u www php think timer start --d
* sudo -u www php think timer restart --d
* sudo -u www php think timer stop --d
**注意:往往登錄服務器的用戶是root用戶這里在啟動命令的時候記得一定要加上sudo - u www,不然會導致項目runtime/cache目錄的權限改變,需注意;**