尊龙凯时人生就是博

ÈçÄÇÀïÖÃLinuxϵͳÖзºÆðµÄÀú³Ì×ÊÔ´ÏÞÖƹýʧÎÊÌâ

ÈçÄÇÀïÖÃlinuxϵͳÖзºÆðµÄÀú³Ì×ÊÔ´ÏÞÖƹýʧÎÊÌâ

ÔÚʹÓÃLinux²Ù×÷ϵͳʱ£¬¾­³ £»áÓöµ½Àú³Ì×ÊÔ´ÏÞÖƹýʧµÄÇéÐΡ£ÕâÖÖ¹ýʧһÑùƽ³£ÊÇÓÉÓÚϵͳ¶ÔÀú³Ì×ÊÔ´¾ÙÐÐÁËÏÞÖÆ£¬µ¼ÖÂÀú³ÌÎÞ·¨Õý³£ÔËÐС£±¾ÎĽ«ÏÈÈÝÈçÄÇÀïÖÃlinuxϵͳÖзºÆðµÄÀú³Ì×ÊÔ´ÏÞÖƹýʧÎÊÌâ¡£

1.ÏàʶÀú³Ì×ÊÔ´ÏÞÖƹýʧµÄÔµ¹ÊÔ­ÓÉ

ÔÚLinuxϵͳÖУ¬Àú³Ìͨ¹ýulimitÏÂÁîÉèÖÃÁËÖÖÖÖ×ÊÔ´ÏÞÖÆ£¬ÀýÈçÀú³Ì½¨Éè×î´óÎļþÊýÄ¿¡¢Àú³Ì¿ÉÓÃÄÚ´æ¾ÞϸµÈ¡£µ±Àú³ÌÐèҪʹÓÃÁè¼ÝÕâЩÏÞÖƵÄ×ÊԴʱ£¬¾Í»á·ºÆð×ÊÔ´ÏÞÖƹýʧ¡£

2.Éó²é×ÊÔ´ÏÞÖƹýʧÐÅÏ¢

µ±Àú³Ì±¬·¢×ÊÔ´ÏÞÖƹýʧʱ£¬ÏµÍ³»áÔÚÖն˻òÈÕÖ¾ÎļþÖÐÊä³öÏìÓ¦µÄ¹ýʧÐÅÏ¢¡£¿ÉÒÔͨ¹ýÉó²é¹ýʧÐÅÏ¢À´È·¶¨ÊÇÄĸö×ÊÔ´ÊÜÏÞÖÆ¡£

3.ͨ¹ýÐÞ¸ÄulimitÏÂÁîÌá¸ß×ÊÔ´ÏÞÖÆ

ͨ¹ýÐÞ¸ÄulimitÏÂÁî¿ÉÒÔÌá¸ßÀú³ÌËùÄÜʹÓõÄ×ÊÔ´ÏÞÖÆ¡£¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÐÞ¸ÄulimitÏÂÁ

ulimit -n unlimited //Ìá¸ßÀú³Ì¿ÉÒÔ·­¿ªµÄÎļþÊýÄ¿ÏÞÖÆ

ulimit -u unlimited //×÷·ÏÀú³Ì¿ÉÒÔ½¨ÉèµÄ×î´óÏß³ÌÊýÄ¿ÏÞÖÆ

ulimit -s unlimited //Ìá¸ßÀú³ÌµÄÕ»¾ÞϸÏÞÖÆ

4.ÐÞ¸ÄϵͳÉèÖÃÎļþÌá¸ß×ÊÔ´ÏÞÖÆ

ÈôÊÇÐèÒªÓÀÊÀÐÔµØÌá¸ß×ÊÔ´ÏÞÖÆ£¬¿ÉÒÔÐÞ¸ÄϵͳÉèÖÃÎļþ¡£ÔÚ/etc/security/limits.conf ÎļþÖÐÌí¼ÓÒÔÏÂÉèÖãº

hard nofile 65535 //Ìá¸ßÀú³Ì¿ÉÒÔ·­¿ªµÄÎļþÊýÄ¿ÏÞÖÆ

soft nofile 65535

hard nproc 65535 //Ìá¸ßÀú³Ì¿ÉÒÔ½¨ÉèµÄ×î´óÏß³ÌÊýÄ¿ÏÞÖÆ

soft nproc 65535

hard stack unlimited //Ìá¸ßÀú³ÌµÄÕ»¾ÞϸÏÞÖÆ

soft stack unlimited

5.ÖØÆôϵͳ»òÖØÐÂÆô¶¯Àú³ÌÉúЧ

ÐÞ¸ÄÍêÉèÖÃÎļþºó£¬¿ÉÒÔͨ¹ýÖØÆôϵͳ»òÖØÐÂÆô¶¯Àú³ÌʹÐÞ¸ÄÉúЧ¡£Àú³ÌÔÚÆô¶¯Ê±»á¶ÁȡϵͳÉèÖÃÎļþÖеÄ×ÊÔ´ÏÞÖÆÉèÖá£

6.ʹÓÃulimitÏÂÁîÔÝʱÌá¸ß×ÊÔ´ÏÞÖÆ

ÔÚ²»ÏëÐÞ¸ÄϵͳÉèÖÃÎļþµÄÇéÐÎÏ£¬¿ÉÒÔʹÓÃulimitÏÂÁîÔÝʱµØÌá¸ß×ÊÔ´ÏÞÖÆ¡£ÀýÈ磬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÔÝʱÌá¸ßÎļþÊýÄ¿ÏÞÖÆ£º

ulimit -n 65535

7.¼ì²éÆäËûÀú³ÌÊÇ·ñÕ¼Óùý¶à×ÊÔ´

×ÊÔ´ÏÞÖƹýʧ¿ÉÄÜÊÇÓÉÓÚÆäËûÀú³ÌÕ¼ÓÃÁ˹ý¶àµÄ×ÊÔ´µ¼ÖµÄ¡£¿ÉÒÔʹÓÃtopÏÂÁîÉó²éϵͳÖÐÕ¼ÓÃ×ÊÔ´½Ï¶àµÄÀú³Ì£¬²¢¾ÙÐÐÏìÓ¦µÄ´¦Àí¡£¿ÉÒÔͨ¹ýɱËÀÕ¼ÓÃ×ÊÔ´¹ý¶àµÄÀú³Ì»òµ÷½âÆä×ÊԴʹÓÃÇéÐÎÀ´½â¾ö×ÊÔ´ÏÞÖƹýʧÎÊÌâ¡£

×ܽ᣺

´¦ÀíLinuxϵͳÖзºÆðµÄÀú³Ì×ÊÔ´ÏÞÖƹýʧÎÊÌâÐèÒªÏàʶ¹ýʧµÄÔµ¹ÊÔ­ÓɺÍÏÞÖƵÄ×ÊÔ´ÀàÐÍ£¬Í¨¹ýÐÞ¸ÄulimitÏÂÁî»òϵͳÉèÖÃÎļþÌá¸ß×ÊÔ´ÏÞÖÆ£¬²¢ÖØÆôϵͳ»òÖØÐÂÆô¶¯Àú³ÌʹÐÞ¸ÄÉúЧ¡£ÈôÊDz»Ïë¶Ôϵͳ¾ÙÐÐÓÀÊÀÐÔµÄÐ޸ģ¬¿ÉÒÔʹÓÃulimitÏÂÁîÔÝʱÌá¸ß×ÊÔ´ÏÞÖÆ¡£±ðµÄ£¬»¹¿ÉÒÔ¼ì²éÆäËûÀú³ÌÊÇ·ñÕ¼Óùý¶à×ÊÔ´£¬²¢¾ÙÐÐÏìÓ¦µÄ´¦Àí¡£Í¨¹ýÒÔÉÏÒªÁ죬¿ÉÒÔÓÐÓõؽâ¾öLinuxϵͳÖзºÆðµÄÀú³Ì×ÊÔ´ÏÞÖƹýʧÎÊÌâ¡£

ÒÔÉϾÍÊÇÈçÄÇÀïÖÃLinuxϵͳÖзºÆðµÄÀú³Ì×ÊÔ´ÏÞÖƹýʧÎÊÌâµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是博ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是博ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是博

13452372176

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ