linux shell pid
¼ÙÉèÊÇÆô¶¯Ò»¸ö rails ³ÌÐò£º
ruby script/server
ͨ³£»áÕâÑù£º
nohup ruby script/server &
°Ñ´íÎóÊä³öÁ÷Ò²¶¨Ïòµ½Õý³£Êä³öÁ÷ÖУº
nohup ruby script/server & 2 > 1 &
Òª¼Ç¼Ï pid £º
nohup ruby script/server & 2 > 1 & echo $! > tmp/pid &
¾¹ý·´¸´µ÷ÊÔ£¬ÉÏÃæµÄÓï¾äËƺõ²»Í×£¬¼ÇÏ嵀 pid ×ܱÈʵ¼ÊµÄ pid ´ó 1£¬ÓÚÊǸÄΪ£º
nohup ruby script/server & echo $! > tmp/pid & 2 > 1 &
ÕâÑù¾ÍºÃÁË
ÉÏÊöµÄÎÊÌâÓ빫˾ÄÚ C++ ×éÀïµÄͬÊÂÈ·ÈϹý£¬µ«ËûÃÇÒ»ÖÂÈÏΪÌí¼Ó 2 > 1 ²»»á¸ü¸Ä½ø³ÌºÅ£¬ÓëÎÒµÄʵ¼Ê²âÊÔ²»·û¡£
kill $(cat tmp/pid)
ÉÏÃæµÄ nohup »áÊä³öÖÁµ±Ç°Ä¿Â¼Ï嵀 nohup.out Îļþ£¬¸ÄµôÒ²¿É£º
nohup ruby script/server >/dev/null & echo $! > tmp/pid & 2 > 1 &
Ïà¹ØÎĵµ£º
¡¡2.4 ³£ÓõÄϵͳ֧³Ö
¡¡¡¡2.4.1 ÄÚ´æÉêÇëºÍÊÍ·Å
¡¡¡¡include/linux/kernel.hÀïÉùÃ÷ÁËkmalloc()ºÍkfree()¡£ÓÃÓÚÔÚÄÚºËģʽÏÂÉêÇëºÍÊÍ·ÅÄÚ´æ¡£
¡¡¡¡void *kmalloc(unsigned int len,int priority);
¡¡¡¡void kfree(void *__ptr);
¡¡¡¡ÓëÓû§Ä£Ê½ÏµÄmalloc()²»Í¬£¬kmalloc()Éê ......
A simple unix/linux daemon in Python
http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/
by Sander Marechal
I've
written a simple Python class for creating daemons on unix/linux
systems. It was pieced together for various other examples, mostly
corrections to various Py ......
×î½üѧϰÁËÔÚlinuxϲ¿ÊðÏîÄ¿£¬Ð´Ð´Ðĵá£
1.°²×°ÐéÄâ»úºó£¬ÅäºÃÍøÂ磬ÇŽÓ×îÈÝÒ×Å䣬ֱ½ÓÔÚlinuxÏÂʹÓÃͬһ¸öÍø¶ÎµÄÈÎÒâipµØÖ·¼´¿É¡£Ë³±ã°ÑvmµÄ¼¸¸öÍøÂçµÄ·þÎñ¸øÍ£ÁË¡£
2.ºÜÖØÒªµÄÒ»µã£¬°ÑlinuxµÄ°²È«ÅäÖÃÉèÖúᣲ¢¿ªÆôsshd·þÎñ
3.ÏÂÔØwindowsÖÐÐèÒªÁ½¸ö¹¤¾ß£ºputtyfile_0.60cn.zip winscp403setupintl.exe
Ç°ÕßΪԶ³ ......
LinuxϵÄsvnÃüÁî svnÔÚlinuxϵÄʹÓã¨svnÃüÁ
1¡¢½«Îļþcheckoutµ½±¾µØĿ¼
svn checkout path£¨pathÊÇ·þÎñÆ÷ÉϵÄĿ¼£©
ÀýÈ磺svn checkout svn://192.168.1.1/pro/domain
¼òд£ºsvn co
2¡¢Íù°æ±¾¿âÖÐÌí¼ÓеÄÎļþ
svn add file
ÀýÈ磺svn add test.php(Ìí¼Ótest.php)
svn add *.php(Ìí¼Óµ±Ç°Ä¿Â¼ÏÂËùÓ ......