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

linuxÏÂulimitÃüÁîÏê½â

1,˵Ã÷:
ulimitÓÃÓÚshellÆô¶¯½ø³ÌËùÕ¼ÓõÄ×ÊÔ´.
2,Àà±ð:
shellÄÚ½¨ÃüÁî
3,Óï·¨¸ñʽ:
ulimit [-acdfHlmnpsStvw] [size]
4,²ÎÊý½éÉÜ:
-H ÉèÖÃÓ²¼þ×ÊÔ´ÏÞÖÆ.
-S ÉèÖÃÈí¼þ×ÊÔ´ÏÞÖÆ.
-a ÏÔʾµ±Ç°ËùÓеÄ×ÊÔ´ÏÞÖÆ.
-c size:ÉèÖÃcoreÎļþµÄ×î´óÖµ.µ¥Î»:blocks
-d size:ÉèÖÃÊý¾Ý¶ÎµÄ×î´óÖµ.µ¥Î»:kbytes
-f size:ÉèÖô´½¨ÎļþµÄ×î´óÖµ.µ¥Î»:blocks
-l size:ÉèÖÃÔÚÄÚ´æÖÐËø¶¨½ø³ÌµÄ×î´óÖµ.µ¥Î»:kbytes
-m size:ÉèÖÿÉÒÔʹÓõij£×¤ÄÚ´æµÄ×î´óÖµ.µ¥Î»:kbytes
-n size:ÉèÖÃÄں˿ÉÒÔͬʱ´ò¿ªµÄÎļþÃèÊö·ûµÄ×î´óÖµ.µ¥Î»:n
-p size:ÉèÖùܵÀ»º³åÇøµÄ×î´óÖµ.µ¥Î»:kbytes
-s size:ÉèÖöÑÕ»µÄ×î´óÖµ.µ¥Î»:kbytes
-t size:ÉèÖÃCPUʹÓÃʱ¼äµÄ×î´óÉÏÏÞ.µ¥Î»:seconds
-v size:ÉèÖÃÐéÄâÄÚ´æµÄ×î´óÖµ.µ¥Î»:kbytes 5,¼òµ¥ÊµÀý:
5.¾ÙÀý
ÔÚLinuxÏÂд³ÌÐòµÄʱºò£¬Èç¹û³ÌÐò±È½Ï´ó£¬¾­³£»áÓöµ½“¶Î´íÎ󔣨segmentation
fault£©ÕâÑùµÄÎÊÌ⣬ÕâÖ÷Òª¾ÍÊÇÓÉÓÚLinuxϵͳ³õʼµÄ¶ÑÕ»´óС£¨stack size£©Ì«Ð¡µÄÔµ¹Ê£¬Ò»°ãΪ10M¡£ÎÒÒ»°ã°Ñstack
sizeÉèÖóÉ256M£¬ÕâÑù¾ÍûÓжδíÎóÁË£¡ÃüÁîΪ£º
ulimit   -s 262140
Èç¹ûҪϵͳ×Ô¶¯¼ÇסÕâ¸öÅäÖ㬾ͱ༭/etc/profileÎļþ£¬ÔÚ “ulimit -S -c 0 > /dev/null
2>&1”ÐÐÏ£¬Ìí¼Ó“ulimit   -s 262140”£¬±£´æÖØÆôϵͳ¾Í¿ÉÒÔÁË£¡
1]ÔÚRH8µÄ»·¾³Îļþ/etc/profileÖÐ,ÎÒÃÇ¿ÉÒÔ¿´µ½ÏµÍ³ÊÇÈçºÎÅäÖÃulimitµÄ:
#grep ulimit /etc/profile
ulimit -S -c 0 > /dev/null 2>&1
ÕâÌõÓï¾äÉèÖÃÁ˶ÔÈí¼þ×ÊÔ´ºÍ¶ÔcoreÎļþ´óСµÄÉèÖÃ
2]Èç¹ûÎÒÃÇÏëÒª¶ÔÓÉshell´´½¨µÄÎļþ´óС×÷ЩÏÞÖÆ,Èç:
#ll h
-rw-r--r-- 1 lee lee 150062 7ÔÂ 22 02:39 h
#ulimit -f 100 #ÉèÖô´½¨ÎļþµÄ×î´ó¿é(Ò»¿é=512×Ö½Ú)
#cat h>newh
File size limit exceeded
#ll newh
-rw-r--r-- 1 lee lee 51200 11ÔÂ 8 11:47 newh
ÎļþhµÄ´óСÊÇ150062×Ö½Ú,¶øÎÒÃÇÉ趨µÄ´´½¨ÎļþµÄ´óСÊÇ512×Ö½Úx100¿é=51200×Ö½Ú
µ±È»ÏµÍ³¾Í»á¸ù¾ÝÄãµÄÉèÖÃÉú³ÉÁË51200×Ö½ÚµÄnewhÎļþ.
3]¿ÉÒÔÏñʵÀý1]Ò»Ñù,°ÑÄãÒªÉèÖõÄulimit·ÅÔÚ/etc/profileÕâ¸ö»·¾³ÎļþÖÐ.
ÓÃ;
ÉèÖûò±¨¸æÓû§×ÊÔ´¼«ÏÞ¡£
Óï·¨
ulimit [ -H ] [ -S ] [ -a ] [ -c ] [ -d ] [ -f ] [ -m ] [ -n ] [ -s ] [
-t ] [ Limit ]
ÃèÊö
ulimit ÃüÁîÉèÖûò±¨¸æÓû§½ø³Ì×ÊÔ´¼«ÏÞ£¬Èç /etc/security/limits ÎļþËù¶¨Òå¡£Îļþ°üº


Ïà¹ØÎĵµ£º

Linux Cº¯Êý¿â²Î¿¼ÊÖ²á(Ò»)

µÚ1ÕÂ×Ö·û²âÊÔº¯Êýisalnum(²âÊÔ×Ö·ûÊÇ·ñΪӢÎÄ×Öĸ»òÊý×Ö)isalpha(²âÊÔ×Ö·ûÊÇ·ñΪӢÎÄ×Öĸ)isascii(²âÊÔ×Ö·ûÊÇ·ñΪASCIIÂë×Ö·û)isblank(²âÊÔ×Ö·ûÊÇ·ñΪ¿Õ¸ñ×Ö·û)iscntrl(²âÊÔ×Ö·ûÊÇ·ñΪASCIIÂëµÄ¿ØÖÆ×Ö·û)isdigit(²âÊÔ×Ö·ûÊÇ·ñΪ°¢À­²®Êý×Ö)isgraph(²âÊÔ×Ö·ûÊÇ·ñΪ¿É´òÓ¡×Ö·û)islower(²âÊÔ×Ö·ûÊÇ·ñΪСдӢÎÄ×Öĸ)isprint(² ......

Ubuntu linuxÏ°²×°Eclipse PDT²½Öè

ÔÚUbuntu LinuxϽøÐÐPHP¿ª·¢£¬Ê×ÏÈ¿ÉÒÔ°²×°´î½¨ LAMP »·¾³ºÍ phpmyadmin Õâ¸öMysql Êý¾Ý¿â¹ÜÀí¹¤¾ß£¬Ö®ºóÑ¡ÔñÒ»¸öFTP´«¹¤¾ßÈ磺Filezilla£¬×îºóÎÒÃÇ»¹ÒªÑ¡ÔñPHP¿ª·¢¹¤¾ß£¬Ubuntu×Ô´øµÄGedit´¿Îı¾±à¼­×öÒ»°ãµÄ´úÂëÎı¾µÄÐÞ¸Ä×ã¹»£¬µ«ÒªÊµÏÖһЩÏîÄ¿ºÍµ÷ÊԵȹ¦ÄܾͲ»ÐÐÁË£¬ËùÒÔÎÒÃÇ»¹ÊÇ×îºÃ»¹ÊÇÑ¡ÔñÒ»¿îIDE¿ª·¢»·¾³£¬ÕâÀïÎÒ ......

LinuxÏÂtelnetÉèÖÃ

Telnet·þÎñµÄÅäÖò½ÖèÈçÏÂ:
    Ò»¡¢°²×°TelnetÈí¼þ°ü(ͨ³£ÒªÁ½¸ö£©
¡¡¡¡1¡¢ Telnet-clIEnt (»ò Telnet)£¬Õâ¸öÈí¼þ°üÌṩµÄÊÇ Telnet ¿Í»§¶Ë³ÌÐò£»
¡¡¡¡2¡¢ Telnet-server £¬Õâ¸öÈí¼þ°üÌṩµÄÊÇ Telnet ·þÎñÆ÷¶Ë³ÌÐò£»
¡¡¡¡°²×°Ö®Ç°Ïȼì²âÊÇ·ñÕâЩÈí¼þ°üÒÑ°²×°£¬·½·¨ÈçÏ£º
¡¡¡¡[root@echo root]# ......

linux dfisk, du,df(´ÅÅÌ¿Õ¼äÐÅÏ¢)ÃüÁîÏê½â


dfÃüÁîÏêϸÓ÷¨
 
a£ºÏÔʾȫ²¿µÄµµ°¸ÏµÍ³ºÍ¸÷·Ö¸îÇøµÄ´ÅÅÌʹÓÃÇéÐÎ
i£ºÏÔʾi -nodesµÄʹÓÃÁ¿
k£º´óСÓÃkÀ´±íʾ (ĬÈÏÖµ)
t£ºÏÔʾijһ¸öµµ°¸ÏµÍ³µÄËùÓзָîÇø´ÅÅÌʹÓÃÁ¿
x£ºÏÔʾ²»ÊÇijһ¸öµµ°¸ÏµÍ³µÄËùÓзָîÇø´ÅÅÌʹÓÃÁ¿
T£ºÏÔʾÿ¸ö·Ö¸îÇøËùÊôµÄµµ°¸ÏµÍ³Ãû³Æ
³£ÓÃÃüÁdf -hi
 
²Ù×÷Ïê½â
&n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ