linux 日志写入到指定文件中

php  /data/xxx/aaa.php > test.log 2 >&1

>覆盖,

>>追加


2>&1 表示不仅命令行正常的输出保存到test.log中,产生错误信息的输出也保存到test.log文件中;

posted @ 2019-09-18 15:48  专心写代码  阅读(5009)  评论(0编辑  收藏  举报