Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
452 views
Welcome To Ask or Share your Answers For Others

1 Answer

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 &

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...