LinuxÏÂulimit ÃüÁî
ulimitÖ÷Òª²é¿´linuxϵͳ϶Ôϵ×ÊÔ´·ÖÅäµÄÏÞÖÆÇé¿ö£¬²é¿´È«²¿Ê¹ÓÃulimit -a (all)
ulimit ²ÎÊý˵Ã÷
Ñ¡Ïî [options] º¬Òå Àý×Ó
-H ÉèÖÃÓ²×ÊÔ´ÏÞÖÆ£¬Ò»µ©ÉèÖò»ÄÜÔö¼Ó¡£ ulimit – Hs 64£»ÏÞÖÆÓ²×ÊÔ´£¬Ïß³ÌÕ»´óСΪ 64K¡£
-S ÉèÖÃÈí×ÊÔ´ÏÞÖÆ£¬ÉèÖúó¿ÉÒÔÔö¼Ó£¬µ«ÊDz»Äܳ¬¹ýÓ²×ÊÔ´ÉèÖᣠulimit – Sn 32£»ÏÞÖÆÈí×ÊÔ´£¬32 ¸öÎļþÃèÊö·û
£¨ÒÔÉÏÁ½Ïî×Ô¼ºÒ²²»ÊǺÜÃ÷°×£©
-a ÏÔʾµ±Ç°ËùÓÐµÄ limit ÐÅÏ¢¡£ ulimit -a£»ÏÔʾµ±Ç°ËùÓÐµÄ limit ÐÅÏ¢
-c ×î´óµÄcoreÎļþµÄ´óС£¬ ÒÔ blocks Ϊµ¥Î»¡£ ulimit–c unlimited£» ¶ÔÉú³ÉµÄ core ÎļþµÄ´óС²»½øÐÐÏÞÖÆ¡£
-d ½ø³Ì×î´óµÄÊý¾Ý¶ÎµÄ´óС£¬ÒÔ Kbytes Ϊµ¥Î»¡£ ulimit -d unlimited£»¶Ô½ø³ÌµÄÊý¾Ý¶Î´óС²»½øÐÐÏÞÖÆ¡£
-f ½ø³Ì¿ÉÒÔ´´½¨ÎļþµÄ×î´óÖµ£¬ÒÔ blocks Ϊµ¥Î»¡£ ulimit –f 2048£»ÏÞÖƽø³Ì¿ÉÒÔ´´½¨µÄ×î´óÎļþ´óСΪ 2048 blocks¡£
-l ×î´ó¿É¼ÓËøÄÚ´æ´óС£¬ÒÔ Kbytes Ϊµ¥Î»¡£ ulimit -l 32£»ÏÞÖÆ×î´ó¿É¼ÓËøÄÚ´æ´óСΪ 32 Kbytes¡£
-m ×î´óÄÚ´æ´óС£¬ÒÔ Kbytes Ϊµ¥Î»¡£ ulimit – m unlimited£»¶Ô×î´óÄÚ´æ²»½øÐÐÏÞÖÆ¡£
-n ¿ÉÒÔ´ò¿ª×î´óÎļþÃèÊö·ûµÄÊýÁ¿¡£ ulimit –n128£»ÏÞÖÆ×î´ó¿ÉÒÔʹÓà 128 ¸öÎļþÃèÊö·û¡£
-p ¹ÜµÀ»º³åÇøµÄ´óС£¬ÒÔ Kbytes Ϊµ¥Î»¡£ ulimit – p 512£»ÏÞÖƹܵÀ»º³åÇøµÄ´óСΪ 512 Kbytes¡£
-s Ïß³ÌÕ»´óС£¬ÒÔ Kbytes Ϊµ¥Î»¡£ ulimit – s 512£»ÏÞÖÆÏß³ÌÕ»µÄ´óСΪ 512 Kbyte
-t ×î´óµÄ CPU Õ¼ÓÃʱ¼ä£¬ÒÔÃëΪµ¥Î»¡£ ulimit -t unlimited£»¶Ô×î´óµÄ CPU Õ¼ÓÃʱ¼ä²»½øÐÐÏÞÖÆ
-u Óû§×î´ó¿ÉÓõĽø³ÌÊý¡£ ulimit – u 64£»ÏÞÖÆÓû§×î¶à¿ÉÒÔʹÓà 64 ¸ö½ø³Ì¡£
-v ½ø³Ì×î´ó¿ÉÓõÄÐéÄâÄڴ棬ÒÔ Kbytes Ϊµ¥Î»¡£ ulimit -v 200000£»ÏÞÖÆ×î´ó¿ÉÓõÄÐéÄâÄÚ´æΪ 200000 Kbytes
ÕâÀï¶ÔÆäÖм¸¸ö³£ÓÃÑ¡Ïî½øÐÐ˵Ã÷£º
1.-c/-f µÄµ¥Î»Îªblocks£¬×¢Òâ²»ÊÇkb. ÔÚÎÞÎļþϵͳµÄ·ÖÇøÖÐ,1blocks=0.5kb;ÔÚÓÐÎļþϵͳµÄ·ÖÇøÖÐ,blocks´óСÊDz»È·¶¨µÄ,ÐèÒªÌض¨¹¤¾ßÀ´²é¿´.
Ò»°ãÕâÁ½Ïî,ûÓÐÌØÊâÒªÇóͨ³£ÉèÖÃΪunlimited
2.-n ²é¿´ÉèÖôò¿ªÎļþÃèÊö·ûµÄÊýÁ¿Ñ¡ÏÔÚweb
Ïà¹ØÎĵµ£º
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
Èç¹ûÄãÕýÔÚΪlinux·ÖÇø¿Õ¼ä²»×ã¶ø¿àÄÕʱ£¬ÇëÄãÒ»¶¨ÒªÍùÏ¿´¡£
linux LVM£¨logical volumes management£©,Õâ¸öʱlinuxÖеÄÂß¼¾í¹ÜÀíÈí¼þ£¬¿ÉÒÔÔÚ¿ª»úÇé¿öÏÂÖØл®·Ö·ÖÇø´óС¡£
LVMÔÊÐíÒ»×鲻ͬµÄ¿éÉ豸£¨Ó²ÅÌ£¬·ÖÇø£¬´ÅÅÌÕóÁÐ...£©×éºÏµ½Ò»Æð³ÉΪһ¸ö´ó´æ´¢É豸£¬Õâ¾ÍÊǾí×é(volume group)¡£
ÏÂÃæÎÒÃÇÀ´¿ªÊ¼½¨Á¢Ò»¸ö¾í×é ......
linuxÌí¼Ó·ÓÉ
http://baikgd.blog.163.com/blog/static/35402495200972111353827/
·þÎñÆ÷ip(eth0)
[root@localhost net]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:E3:9A:15
inet addr:172.18.3.205 Bcast:172.18.3.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fee3:9a15/64 Scope:Link
UP BR ......
ÐźÅÊÇLinux±à³ÌÖзdz£ÖØÒªµÄ²¿·Ö£¬±¾ÎĽ«Ïêϸ½éÉÜÐźŻúÖƵĻù±¾¸ÅÄî¡¢Linux¶ÔÐźŻúÖƵĴóÖÂʵÏÖ·½·¨¡¢ÈçºÎʹÓÃÐźţ¬ÒÔ¼°ÓйØÐźŵļ¸¸öϵͳµ÷Óá£
ÐźŻúÖÆÊǽø³ÌÖ®¼äÏ໥´«µÝÏûÏ¢µÄÒ»ÖÖ·½·¨£¬ÐźÅÈ«³ÆΪÈíÖжÏÐźţ¬Ò²ÓÐÈ˳Æ×÷ÈíÖжϡ£´ÓËüµÄÃüÃû¿ÉÒÔ¿´³ö£¬ËüµÄʵÖʺÍʹÓúÜÏóÖжϡ£ËùÒÔ£¬ÐźſÉÒÔ˵Êǽø³Ì¿ØÖƵÄÒ ......