Created
August 17, 2014 15:14
-
-
Save foru17/750133ce326a034a5e4d to your computer and use it in GitHub Desktop.
linux后台运行程序
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nohup node server.js > /dev/null 2>&1 & | |
| nohup means: Do not terminate this process even when the stty is cut off. | |
| > /dev/null means: stdout goes to /dev/null (which is a dummy device that does not record any output). | |
| 2>&1 means: stderr also goes to the stdout (which is already redirected to /dev/null). | |
| & at the end means: run this command as a background task. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment