# nohup somecommand > /dev/null &
或者:
# nohup somecommand > /dev/null 2>&1 &
这个命令很有用。比如在此文http://2.latest.ymsdblog.appspot.com/articles/2011/06/15/1308110356464.html中,要让radiusd一直处于运行状态,可以这样做:
# nohup radiusd > /dev/null &
又比如,在安装基于django+python的建站程序时,运行
# nohup python /path/to/djblog/manage.py runserver 0.0.0.0:8000 >/dev/null 2>&1 &,就可让django的开发服务器一直处于运行状态,这样,
http://urdomain.com:8000就一直可以被访问。否则,虽然运行了# python /path/to/djblog/manage.py runserver 0.0.0.0:8000,
网站http://urdomain.com:8000处于可访问状态,但是在关了putty.exe后,网站http://urdomain.com:8000就无法访问了
看得透又看得远者prevail. ppt.cc/flUmLx ppt.cc/fqtgqx ppt.cc/fZsXUx ppt.cc/fhWnZx ppt.cc/fnrkVx ppt.cc/f2CBVx
ppt.cc/fVjECx ppt.cc/fEnHsx ppt.cc/fRZTnx ppt.cc/fSZ3cx ppt.cc/fLOuCx ppt.cc/fE9Nux ppt.cc/fL5Kyx ppt.cc/fIr1ax ppt.cc/f71Yqx tecmint.com linuxcool.com linux.die.net linux.it.net.cn ostechnix.com unix.com ubuntugeek.com runoob.com man.linuxde.net ppt.cc/fwpCex ppt.cc/fxcLIx ppt.cc/foX6Ux linuxprobe.com linuxtechi.com howtoforge.com linuxstory.org systutorials.com ghacks.net linuxopsys.com ppt.cc/ffAGfx ppt.cc/fJbezx ppt.cc/fNIQDx ppt.cc/fCSllx ppt.cc/fybDVx ppt.cc/fIMQxx ppt.cc/fKlBax
Total Pageviews
5,606,937
No comments:
Post a Comment