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

linux¹ÜÀí

ʹÓÃdfºÍduÃüÁîÀ´¼à¿ØÎļþϵͳµÄÓÐЧ¿Õ¼äµÄ´óС
ͨ¹ýÇå³ý²»ÓõÄÎļþºÍcoreÎļþÀ´ÇåÀíÎļþϵͳ¿Õ¼ä
ͨ¹ýÐÞ¼ôÈÕÖ¾ÎļþÀ´ÇåÀí/varÎļþϵͳ
´ÓÃüÁîÐÐÀ©Õ¹Ò»¸ö¾í×é
´ÓÃüÁîÐÐÀ©Õ¹Ò»¸öÂß¼­¾í
´ÓÃüÁîÐÐÀ©Õ¹Ò»¸öÎļþϵͳ
1.¼à¿Ø´ÅÅÌʹÓÃÇé¿ö
ʹÓÃdf ÃüÁî¼ì²éÎļþϵͳµÄÓÐЧ¿Õ¼ä¡£
# df -k
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol5 294912 261523 31352 89£¥ /opt
/dev/vg00/lvol4 24576 19333 4978 80£¥ /home
/dev/vg00/myfs1 16384 1174 14331 8£¥ /myfs1
/dev/vg00/myfs2 15893 14006 297 98£¥ /myfs2
¼ì²éĿ¼Öеĸ÷¸ö×ÓĿ¼ʹÓõĴÅÅ̿ռ䣺
# du -sk /myfs2/*
844 /myfs2/data1
1327 /myfs2/data2
1073 /myfs2/data3
10757 /myfs2/data4
4 /myfs2/lost found
ϵͳ¹ÜÀíÔ±ÓÐÔðÈμàÊÓϵͳÖеÄÊ£Óà´ÅÅÌ¿Õ¼äµÄ´óС¡£Í¨³£Ê¹ÓõÄÃüÁîÊÇdf¡£ÏÔʾµÄ×ֶκ¬ÒåΪ£º
Filesystem ÎļþϵͳʹÓõĿéÉ豸ÎļþÃû
Kbytes ÎļþϵͳռÓÃÁ˶àÉÙ´ÅÅ̿ռ䣨µ¥Î»Îªk)
used ÎļþϵͳÖÐÒÑ´æÔÚµÄÎļþËùÕ¼ÓõĴÅÅÌ¿Õ¼ä
avail ÎļþϵͳÖÐÊ£ÓàµÄÓÐЧ´ÅÅÌ¿Õ¼ä
capacity ÎļþÕ¼ÓõĴÅÅÌ¿Õ¼äµÄ°Ù·Ö±È
Mounted on Îļþϵͳ°²×°µã
Èç¹û¼ÓÉÏ-iÑ¡ÏÊä³öÖлáÔö¼ÓÈý¸ö×ֶΣº
iused Îļþϵͳµ±Ç°Ê¹ÓõÄinodeµÄÊýÄ¿
ifree ÎļþϵͳʣÓàµÄinodeÊýÄ¿
%used Îļþϵͳµ±Ç°Ê¹ÓõÄinodeÊýÄ¿ËùÕ¼µÄ°Ù·Ö±È
µ±ÄãÏëÒªÖªµÀ¸ü¶àµÄϸ½Ú£¬ÈçÒ»¸öĿ¼ÏÂÃæʹÓÃÁ˶àÉÙ´ÅÅ̿ռ䣬Äã¿ÉÒÔʹÓÃduÃüÁĬÈÏÇé¿öÏ£¬duÏÔʾµÄµ¥Î»Îª512×Ö½ÚµÄÒ»¸öblock¡£Õâ¸öÃüÁîµÄÖ´ÐÐÊǵݹéµÄ£¬Òâζ×ÅÈç¹ûÔÚµ±Ç°Ä¿Â¼Ö´ÐÐÕâ¸öÃüÁËü»á·µ»Øµ±Ç°Ä¿Â¼ÏÂËùÓеÄÎļþºÍ¸÷¼¶×ÓĿ¼µÄÐÅÏ¢¡£
Ö÷ÒªµÄÑ¡ÏîΪ£º
-k ÒÔk×Ö½ÚΪµ¥Î»
-s Ö»ÏÔʾָ¶¨Ä¿Â¼Õ¼ÓõÄ×ܵĴÅÅ̿ռ䡣
2.ÈÕ³£µÄά»¤
¶Ô²»¶ÏÔö³¤ÈÕÖ¾Îļþ½øÐÐÐÞ¼ô£¨trim)
ɾ³ýÎÞÓõÄcoreÎļþ
ɾ³ý´óµÄ£¬¾ÉµÄµÄÎļþ
À©Õ¹Îļþϵͳ
- µ½Ò»¸öÒÑ´æÔڵĿÕÏпռäÖÐ
- µ½¾í×éÖеÄÒ»¸öеĴÅÅÌÉÏ
´ÅÅÌ¿Õ¼äͨ³£ÊÇÓÐÏ޵ġ£ÏµÍ³¹ÜÀíÔ±Ó¦¸Ã¾­³£¼ì²é´ÅÅÌ¿Õ¼äµÄʹÓÃÇé¿ö£¬²¢ÇÒÖ´ÐÐһЩ²Ù×÷À´·ÀÖ¹´ÅÅÌ¿Õ¼äÓþ¡¡£ÏµÍ³¹ÜÀíÔ±¿ÉÒÔ×öµÄ²Ù×÷ÓУº¼à¿Ø²»¶ÏÔö³¤µÄÎļþ£¬É¾³ýcoreÎļþ£¬¼ôÇÐÈÕÖ¾Îļþ£¬ºÍɾ³ý³¤Ê±¼ä²»ÓõĴóÎļþ»òÕß½«Æä¹éµµ¡£
¼ôÇÐÈÕÖ¾Îļþ
ͨ³£×îÏÈ·¢³ö“ÎļþϵͳÂú”µÄÐÅÏ¢µÄÊÇ/varÎļþϵͳ¡£/varĿ¼Öаüº¬ÏµÍ³ÈÕÖ¾ÎļþºÍ»º³å³Ø£¬Èç¹û²»¶ÔÕâЩÎļþ½øÐмì²éºÍÇåÀí£¬ËüÃÇ»áºÜ¿ìÌîÂúÕâ¸öÎļþϵͳ¡£
ÒÔϵÄÀý×Ó½«Ç


Ïà¹ØÎĵµ£º

LinuxÏÂApacheÓëJboss·þÎñÆ÷ÅäÖÃÕûºÏʵÏÖ·½°¸

Ŀ¼
1 ÒýÑÔ... 3
1.1 ±³¾°... 3
1.2 ±àдĿµÄ... 3
1.3 ¶¨Òå... 3
1.4 ²Î¿¼×ÊÁÏ... 3
2. ApacheÓëJBoss·þÎñÆ÷¼ò½é... 3
2.1 Apache·þÎñÆ÷... 3
2.2 JBoss·þÎñÆ÷... 3
3. ApacheÓëJBoss·þÎñÆ÷ÅäÖÃÕûºÏ... 3
3.1 ÈÃApacheÓëJBossÒ»Æð¹¤×÷... 3
3.1.1 ¼ò½é... 3
3.1.2 »·¾³... 3
3.1.3 °²×°... 4
3.1.4 ÅäÖÃ... ......

linux Ï°²×°phonon

¹ØÓÚqt embedded phonon °²×°ÎÊÌâ¡£
¿ÉÄÜÔÚ°²×°$sudo ./configure -phonon -phonon-backend .....µÄʱºò»á˵ÕÒ²»µ½phonon ,
ºÜÃ÷ÏÔÒòΪûÓÐÕâ¸öphononÕâ¸ö¿â£¬µ±È»¾Í»áÕÒ²»µ½£¬ÔÚ±àÒëµÄʱºò£¬
ÌرðÊÇ./configure -phonon -phonon-backendµ±±àÒëºÜ¶Îʱ¼äºó»á˵£ºPhonon support cannot ...Õâ¸öʱºò¾Í¾ÍÇëÄã¼ÓÉÏ'-v'£»$sud ......

Linux½ø³Ì¼äͨѶËùʹÓõÄϵͳµ÷Óú¯Êý


´°Ì嶥¶Ë
Ë÷Òý£º
1.fork¡¢execºÍexit¶ÔIPC¶ÔÏóµÄÓ°Ïì
2.fcntl¼Ç¼Ëø
3.¹ÜµÀºÍFIFOµÄÊôÐÔ
4.¹ÜµÀºÍFIFOµÄÏÞÖÆ
5.pipeº¯Êý
6.popenºÍpclose
7.mkfifoº¯Êý
8.System V IPC¹²ÐÔÃèÊö
9.msqid_ds½á¹¹
10.msggetº¯Êý
11.msgsndº¯Êý
12.msgrcvº¯Êý
13.msgctlº¯Êý
14.ÔÚSystem VÏûÏ¢¶ÓÁÐÉÏʹÓÃselectºÍpoll
15.sem ......

Linux½ø³Ì¼äͨѶ֮¹²ÏíÄÚ´æ

¹²ÏíÄÚ´æ:
ʹÓù²ÏíÄÚ´æºÍʹÓÃmalloc()À´·ÖÅäÄÚ´æÇøÓòºÜÏàËÆ¡£Ê¹Óù²ÏíÄÚ´æµÄ·½·¨ÊÇ£º
    1 ¶ÔÒ»¸ö½ø³Ì/Ïß³ÌʹÓÃshmget()·ÖÅäÄÚ´æÇøÓò¡£
    2 ʹÓÃshmat()·ÅÖÃÒ»¸ö»ò¶à¸ö½ø³Ì/Ïß³ÌÔÚ¹²ÏíÄÚ´æÖУ¬Ò²¿ÉÒÔÓÃshmctl()À´»ñÈ¡ÐÅÏ¢»òÕß¿ØÖƹ²ÏíÇøÓò¡£
    3 ʹÓÃshmdt()´Ó¹²Ïí ......

Linux²Ù×÷ϵͳÏÂÈçºÎÌí¼Ó·þÎñ

#!/bin/sh ÊÇ˵Ã÷¸Ã½Å±¾µ÷ÓõÄshellµÄÀàÐÍ
 
#chkconfig: 2345 80 05 ÆäÖÐ2345ÊÇÖ¸Ã÷·þÎñµÄÔËÐеȼ¶£¬80±íÃ÷ÊÇϵͳÆô¶¯Ê±ÒªÆô¶¯µÚ80ºÅ·þÎñ£¨·þÎñºÅ¿ÉÒÔÖظ´£©¡£05±íÃ÷ÊÇϵͳ¹Ø±ÕҪֹͣµÄ·þÎñºÅ¡£
 
#descrīption: service ÕâÀïµÄserviceÄã¿ÉÒÔËæ±ãÌí£¬µ«±ØÐëÓÐ
 
case $1 in ÕâÀïµÄcaseÊǸöÑ¡ÔñÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ