Last Updated: February 25, 2016
·
2.658K
· 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.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Related Tags
#php
#linux
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside