查看某个后台进程的输出内容 在后台执行PHP的脚本时,若想看进程输出内容(如脚本中的echo信息),可执行以下命令查看 strace -p {pid} -ewrite 1 strace -p {pid} -ewrite 其中,pid是进程的pid值,可以通过ps aux|grep ‘进程名’查看。