php /data/xxx/aaa.php > test.log 2>&1php
>覆蓋,命令行
>>追加test
2>&1 表示不只命令行正常的輸出保存到test.log中,產生錯誤信息的輸出也保存到test.log文件中;文件