nohup 后台运行命令,文件时把输出指定到指定文件

2为错误输出,1为程序输出

nohup php a.php 2>a.error.log 1>a.log &

你可能感兴趣的:(nohup 后台运行命令,文件时把输出指定到指定文件)