后台运行php脚本,用到了nohup命令;
nohup php receive_test.php & 即可后台一直执行;日志在nohup.out文件里;
遇到报错:
nohup: ignoring input and appending output to ‘nohup.out’
nohup.out文件权限问题;先查看进程,把之前的该脚本进程kill掉;然后修改nohup.out的权限,然后重新执行最上面命令即可;
后台运行php脚本,用到了nohup命令;
nohup php receive_test.php & 即可后台一直执行;日志在nohup.out文件里;
遇到报错:
nohup: ignoring input and appending output to ‘nohup.out’
nohup.out文件权限问题;先查看进程,把之前的该脚本进程kill掉;然后修改nohup.out的权限,然后重新执行最上面命令即可;