linuxÈçºÎÏÞÖÆÖ¸¶¨½ø³ÌµÄÄÚ´æÊ¹ÓÃÁ¿£¿
´ó¼ÒºÃ£¡
ÎÒʹÓõÄϵͳÊÇopen suse 11.2, ÔÚ×ö³ÌÐòµÄ±àÒëºÍÁ´½Óʱ£¬·¢ÏÖµ±¿ªÊ¼Á´½Óʱ£¬ÏµÍ³·´Ó¦±äµÃºÜÂý£¬ÆäËü½ø³Ì¾ÍÏñ±»¿¨×¡ÁËËÆµÄ¡£Ê¹ÓÃtop²é¿´£¬·¢ÏÖ2GÄڴ漸ºõ±»ÓùâÁË£¬Ö»Ê£ÏÂ45M£¬ÐéÄâÄÚ´æÒ²±»ÓõÄ2G£¬ÎÒÒѾ½«swap·ÖÇøÀ©Õ¹µ½4GÁË¡£ÎҲ²â¿ÉÄÜÊÇÒòΪÎïÀíÄÚ´æ±»ÓùâÔì³Éϵͳ·´Ó¦±äÂýµÄ¡£
linuxÏÂÓÐûÓÐʲô°ì·¨ÏÞÖÆÖ¸¶¨½ø³ÌµÄÄÚ´æÊ¹ÓÃÁ¿£¿
лл¸÷λ£¡£¡
Â¥ÉÏÌûµÄ²©¿ÍÀïдµÄ»¹ËãÏêϸ
Â¥Ö÷¿ÉÒÔgoogleһϰ¡
up
һ¥µÄ°ì·¨Ó¦¸ÃÊÇ¿ÉÒÔ´ïµ½µÄ°É£¬ÎÒÕýÔÚÊÔ£¬²»¹ý»¹ÊÇÓÐЩÂé·³¡£ÎÒÖ»ÊÇÏëÏÞÖÆld½ø³ÌµÄÄÚ´æÊ¹ÓÃÁ¿£¬²»ÏëÏÞÖÆÕû¸öÓû§µÄÄÚ´æ¡£Èç¹ûн¨Ò»¸öÓû§À´ÔËÐÐld£¬ÒòΪÓÐȨÏÞºÍhome·¾¶µÄÎÊÌ⣬ÓÐЩÂé·³¡£Ï£ÍûÄÜÓÐÒ»¸ö·½·¨À´ÏÞÖÆµ±Ç°Óû§µÄÎïÀíÄÚ´æÊ¹ÓÃÁ¿¡£
ÎÒ·¢ÏÖʹÓÃPAM²»Æð×÷Óá£ÎÒн¨ÁËÒ»¸öÓû§£¬²¢ÔÚ/etc/security/limit.confÖÐÉèÖøÃÓû§rssΪ500M,µ«ÊÇ×îºóÔËÐÐld£¬·¢ÏÖËü»¹ÊÇÓÃÁË1.3gÎïÀíÄÚ´æ¡£
build hard rss 500000
ÎÒÒÔΪÊÇÒòΪûÓÐÖØÆôϵͳÔì³ÉûÓÐÓ¦Ó㬺óÀ´ÖØÆôϵͳ£¬ÒÀÈ»ÎÞ·¨ÏÞÖÆÓû§µÄÎïÀíÄÚ´æ¡£
ÓÐÈËÖªµÀû£¿
setrlimit¡¢getrlimit
ÐèÒªrootȨÏÞ
setrlimit
Ïêϸ²Î¼ûman»òÕß UNIX»·¾³¸ß¼¶±à³Ì
лл£¡£¡
ÎÒ²éÁËһϣ¬setrlimitÊÇÒ»¸öº¯Êýµ÷Ó㬲¢ÇÒÖ»ÄÜÓÉÓ¦ÓóÌÐòµ÷ÓÃÀ´¿ØÖÆ×ÔÉí½ø³ÌµÄ×ÊԴʹÓÃÁ¿¡£ÎÒµÄÄ¿µÄÊÇ¿ØÖÆÏµÍ³ÖÐÆäËü½ø³ÌµÄ×ÊԴʹÓÃÁ¿¡£ËùÒÔÕâ¸öº¯Êý²»Êʺϡ£
¼ÈÈ»ÕâÑùµÄ»°
ÎÒÏëlinuxûÓÐÌṩÐ޸ıðµÄ½ø³Ì×ÊÔ´ÏÞÖÆµÄº¯Êý
ÿ¸ö½ø³Ì»á¼Ì³Ð¸¸½ø³ÌµÄ×ÊÔ´ÏÞÖÆ
Èç¹ûÄãÄÜÈÃÄãÒª¿ØÖƵĽø³Ì³ÉΪÄã´´½¨µÄ¸¸½ø³ÌµÄ×ÓËï
ÄÇôsetrlimit »¹ÊÇ¿ÉÒÔµÄ
²»È»£¬Ö»ÄÜ×Ô¼ºÐ´ÄÚºËÄ£¿é
ÐÞ¸ÄÖ¸¶¨
Ïà¹ØÎÊ´ð£º
linux ÏÂC±à³Ì ¼¯³É¿ª·¢»·¾³ ÓÃʲô±È½ÏºÃ
ÎÒ³õ²½Ñ¡¶¨ codeblock
ºÇºÇ »¹ÓÐ ÔÚlinux дÁËÒ»¸ö´òÓ¡ÖÐÎĵĴúÂ룬¶ø½ñÌìÔÚwindows ϲ鿴ÄǸö´úÂë £¬ ÊÇÂÒÂë ¶øºóÏëµ½ÏÈÓà EditPlusÏȽøÐб༠Ȼºó¸´ÖÆ ......
´úÂëÌ«¶à£¬²»ºÃÌù£¬
´óÖÂÉæ¼°µ½ÕâЩ£º
char *arg[MAXSIZE];
char *buffer[MAXSIZE];
.........
arg[k]=(char*)malloc(sizeof(char)*j);
strcpy(arg[k],buffer);
.................[color=#993300][/color]
µ ......
×ÉѯQQ£º269562808
bzip2recover
¹¦ÄÜ˵Ã÷£ºÓÃÀ´ÐÞ¸´Ë𻵵Ä.bz2Îļþ¡£
Óï·¨£ºbzip2recover[.bz2ѹËõÎļþ]
²¹³ä˵Ã÷£ºbzip2ÊÇÒÔÇø¿éµÄ·½Ê½À´Ñ¹ËõÎļþ£¬Ã¿¸öÇø¿éÊÓΪ¶ÀÁ¢µÄµ¥Î»¡£Òò´Ë£¬µ±Ä³Ò»Çø
¿éËð»µÊ±£¬±ã¿ÉÀû ......
ÎÒÔÚÐéÄâ»úÀï°²×°ÁËred hat£¬È»ºóÓÃleapFtp°ÑÎÒµÄjavawebÏîÄ¿´«µ½ÐéÄâ»úÏ£¬ÔÚlinuxÀïÎÒÓ¦¾°²×°ºÃjdkºÍtomcat£¬ÎÒÏëÇë½Ìһϸ÷룬ÔõôÔÚlinuxÀï²¼ÖÃÎÒµÄjavaweb¹¤³Ì£¬ÈÃÆäÔËÐÐÆðÀ´µÄ£¬ÇëÏêϸµÄºÍÎÒ˵һÏ£¬Ð»Ð»
² ......
ÒýÓÃÄÚÈÝvsking 2009-12-25 22:56:52
ÏÖÔÚÊÇwin2008ºÍiis8µÄʱ´úÁË£¬²»Òª»¹Í£ÁôÔÚiis5ʱ´ú£¬win2008±»ÆÀΪʮ¼Ñ²Ù×÷ϵͳ֮Êײ»ÊÇżȻµÄ£¬ÄãÒªÊÇ..
ÎÒµÄÎÊÌâÊÇ£º
×î½üÏëÂò¸ö·þÎñÆ÷£¬¿´ÁËdellÉϵÄϵͳ¶¨ÖÆÑ¡Ôñ£¬Ò»Ð© ......