# 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就无法访问了
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 bit.ly/2EzoUDo bit.ly/2tW6eYT bit.ly/2X6vadl bit.ly/2viLpHU linuxprobe.com linuxtechi.com howtoforge.com linuxstory.org systutorials.com ghacks.net linuxopsys.com v.gd/2P9wTx v.gd/FtfpqE v.gd/eMfHsm v.gd/Ub7mqv v.gd/RReVk0 v.gd/vS3uTI v.gd/4Zxmba
No comments:
Post a Comment