Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

½ø³ÌÔÚLinuxºǫ́ÔËÐÐ

 ÔÚLinuxÖУ¬Èç¹ûÒªÈýø³ÌÔÚºǫ́ÔËÐУ¬Ò»°ãÇé¿öÏ£¬ÎÒÃÇÔÚÃüÁîºóÃæ¼ÓÉÏ&¼´¿É£¬Êµ¼ÊÉÏ£¬ÕâÑùÊǽ«ÃüÁî·ÅÈëµ½Ò»¸ö×÷Òµ¶ÓÁÐÖÐÁË£º 
$ ./test.sh & 
[1] 17208 
$ jobs -l 
[1]+ 17208 Running ./test.sh & 
¶ÔÓÚÒѾ­ÔÚǰִ̨ÐеÄÃüÁҲ¿ÉÒÔÖØзŵ½ºǫִ́ÐУ¬Ê×ÏÈ°´ctrl+zÔÝÍ£ÒѾ­ÔËÐеĽø³Ì£¬È»ºóʹÓÃbgÃüÁֹͣµÄ×÷Òµ·Åµ½ºǫ́ÔËÐУº 
$ ./test.sh 
[1]+ Stopped ./test.sh 
$ bg %1 
[1]+ ./test.sh & 
$ jobs -l 
[1]+ 22794 Running ./test.sh & 
µ«ÊÇÈçÉÏ·½µ½ºǫִ́ÐеĽø³Ì£¬Æ丸½ø³Ì»¹Êǵ±Ç°ÖÕ¶ËshellµÄ½ø³Ì£¬¶øÒ»µ©¸¸½ø³ÌÍ˳ö£¬Ôò»á·¢ËÍhangupÐźŸøËùÓÐ×Ó½ø³Ì£¬×Ó½ø³ÌÊÕµ½hangupÒÔºóÒ²»áÍ˳ö¡£Èç¹ûÎÒÃÇÒªÔÚÍ˳öshellµÄʱºò¼ÌÐøÔËÐнø³Ì£¬ÔòÐèҪʹÓÃnohupºöÂÔhangupÐźţ¬»òÕßsetsid½«½«¸¸½ø³ÌÉèΪinit½ø³Ì(½ø³ÌºÅΪ1) 
$ echo $$ 
21734 
$ nohup ./test.sh & 
[1] 29016 
$ ps -ef | grep test 
515 29710 21734 0 11:47 pts/12 00:00:00 /bin/sh ./test.sh 
515 29713 21734 0 11:47 pts/12 00:00:00 grep test 
$ setsid ./test.sh & 
[1] 409 
$ ps -ef | grep test 
515 410 1 0 11:49 ? 00:00:00 /bin/sh ./test.sh 
515 413 21734 0 11:49 pts/12 00:00:00 grep test 
ÉÏÃæµÄÊÔÑéÑÝʾÁËʹÓÃnohup/setsid¼ÓÉÏ&ʹ½ø³ÌÔÚºǫ́ÔËÐУ¬Í¬Ê±²»Êܵ±Ç°shellÍ˳öµÄÓ°Ïì¡£ÄÇô¶ÔÓÚÒѾ­ÔÚºǫ́ÔËÐеĽø³Ì£¬¸ÃÔõô°ìÄØ£¿¿ÉÒÔʹÓÃdisownÃüÁ 
$ ./test.sh & 
[1] 2539 
$ jobs -l 
[1]+ 2539 Running ./test.sh & 
$ disown -h %1 
$ ps -ef | grep test 
515 410 1 0 11:49 ? 00:00:00 /bin/sh ./test.sh 
515 2542 21734 0 11:52 pts/12 00:00:00 grep test 
ÁíÍ⻹ÓÐÒ»ÖÖ·½·¨£¬¼´Ê¹½«½ø³ÌÔÚÒ»¸ösubshellÖÐÖ´ÐУ¬ÆäʵÕâºÍsetsidÒìÇúͬ¹¤¡£·½·¨ºÜ¼òµ¥£¬½«ÃüÁîÓÃÀ¨ºÅ() À¨ÆðÀ´¼´¿É£º 
$ (./test.sh &) 
$ ps -ef | grep test 
515 410 1 0 11:49 ? 00:00:00 /bin/sh ./test.sh 
515 12483 21734 0 11:59 pts/12 00:00:00 grep test 
×¢£º±¾ÎÄÊÔÑé»·¾³ÎªRed Hat Enterprise Linux AS release 4 (Nahant Update 5),shellΪ/bin/bash£¬²»Í¬µÄOSºÍsh


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

WindowsÓëLinux±àÒëÆ÷µÄ²îÒì

 
¿ªÊ¼ÒÆÖ² ¹¤×÷ºóµÄµÚÒ»²½¾ÍÊÇÔÚÄ¿±êƽ̨LinuxÉϽøÐбàÒ룬²¢Á´½ÓÔ´´úÂë¡£ÓÉÓÚÐèÒªÒÆÖ²µÄÈí¼þͨ³£²¢Î´ÔÚLinuxƽ̨ÉϱàÒë¹ý£¬±àÒëµÄ¹ý³Ì¿ÉÄÜ»áÓöµ½ºÜ´óµÄÀ§ ÄÑ¡£Ò»°ãÇé¿öÏ£¬ÓÉÀàÐÍÉùÃ÷ÒýÆðµÄ±àÒë´íÎóÊDZȽÏÈÝÒ×ÐÞ¸´µÄ¡£±ÈÈçMicrosoft C/C++µÄÍ·ÎļþʹÓÃ__declspec( dllimport/dllexport )À´ÊäÈëºÍÊä³öDLLº¯Êý£¬ÔÚLin ......

SYN CookieÔ­Àí¼°ÆäÔÚLinuxÄÚºËÖеÄʵÏÖ

¸ÅÊö
ÔÚÄ¿Ç°ÒÔIPv4Ϊ֧³ÅµÄÍøÂçЭÒéÉϴµÄÍøÂç»·¾³ÖУ¬SYN FloodÊÇÒ»Öַdz£Î£ÏÕ¶ø³£¼ûµÄDoS¹¥»÷·½Ê½¡£µ½Ä¿Ç°ÎªÖ¹£¬Äܹ»ÓÐЧ·À·¶SYN Flood¹¥»÷µÄÊֶβ¢²»¶à£¬¶øSYN Cookie¾ÍÊÇÆäÖÐ×îÖøÃûµÄÒ»ÖÖ¡£SYN CookieÔ­ÀíÓÉD. J. BernstainºÍ Eric Schenk·¢Ã÷¡£Ôںܶà²Ù×÷ϵͳÉ϶¼Óи÷ÖÖ¸÷ÑùµÄʵÏÖ¡£ÆäÖаüÀ¨Linux¡£±¾Îľͷֱð½éÉÜÒ ......

Linux JDK,°²×°¼°»·¾³ÉèÖÃ

 JDK
½øÈ밲װĿ¼
#cd /home
#cp jdk-1_5_0_02-linux-i586.rpm /usr/local
#cd /usr/local
¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ
#chmod +x jdk-1_5_0_02-linux-i586.rpm.bin
#./jdk-1_5_0_02-linux-i586.rpm.bin
´Ëʱ»áÉú³ÉÎļþjdk-1_5_0_02-linux-i586.rpm£¬Í¬Ñù¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ
#chmod +x jdk ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ