nohup:ignoring input and appending output to 'nohup.out'

泪湿孤枕 提交于 2019-11-27 11:28:08

问题


I want to start my server through nohup.php but the command is not running and displays following error

nohup:ignoring input and appending output to 'nohup.out'

I am using ssh through putty, this is what i am doing

nohup php server1.php


回答1:


That's not an error - it's normal behavior. It just informs you that once started the in/output is removed from your console.

To avoid the message you need to start it like

nohup php server1.php </dev/null &>/dev/null &


来源:https://stackoverflow.com/questions/24646320/nohupignoring-input-and-appending-output-to-nohup-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!