Last Updated: February 25, 2016
·
2.479K
· kayue

Start PHP5.4 built-in server in background

nohup php -S 0.0.0.0:57152  > /dev/null 2>&1 &

nohup: Do not terminate this process even when the stty is cut off.

> /dev/null: stdout goes to /dev/null (which is a dummy device that does not record any output).

2>&1: stderr also goes to the stdout (which is already redirected to /dev/null).

&: at the end means to run this command as a background task.