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

Linux ÎļþºÍĿ¼µÄÊôÐÔ


Linux ÎļþºÍĿ¼µÄÊôÐÔ
×÷Õߣº±±ÄÏÄϱ±
À´×Ô£ºhttp://www.linuxsir.org/main/?q=node/196
ÕªÒª£º±¾ÎĽ²ÊöµÄÊÇÎļþ»òĿ¼µÄÊôÐÔ£¬±ÈÈç½Úµãinode¡¢ÎļþÀàÐÍ¡¢ÎļþȨÏÞ¼°¹éÊô£»»¹¶Ôsetuid¡¢setgid¼°Õ³Ìùλ½øÐÐÁËÒ»°ãÐԵĽ²½â¡£¶Ôln
¡¢chmod¡¢umask¡¢chown¡¢chgrp ¡¢touch µÄÓ÷¨Ò²½øÐÐÁ˱ȽÏÏêϸµÄ˵Ã÷ºÍ¾ÙÀý£»
Ŀ¼
1¡¢ Linux ÎļþµÄÊôÐÔ¸Å˵£»
2¡¢
¹ØÓÚinode£»
2.10 inode ÏàͬµÄÎļþÊÇÓ²Á´½ÓÎļþ£»
2.11 ´´½¨Ó²Á´½Ó£¬Ó²Á´½ÓºÍÔ´Îļþ¹Øϵ£»
2.12 ÈíÁ´½ÓµÄ´´½¨£¬¼°Èí½ÓÓëÔ´ÎļþµÄ¹Øϵ£»
3¡¢ÎļþÀàÐÍ£»
4¡¢ÎļþµÄȨÏÞ£»
 
4.21 ͨ¹ý chmod °Ë½øÖÆÓï·¨À´¸Ä±äÎļþ»òĿ¼µÄȨÏÞ£»
4.22 ͨ¹ý chmod Öú¼ÇÓï·¨À´¸Ä±äÎļþ»òĿ¼µÄȨÏÞ£»
4.1 ¹ØÓÚȨÏÞλ£»
4.2
¸Ä±äȨÏÞµÄÃüÁî chmod £»
4.3 ĬÈÏȨÏÞ·ÖÅäµÄÃüÁî umask £»
5¡¢setuidºÍsetgid λ£»
5.1 setuidºÍsetgidµÄ½â˵ £»
5.2 setuidºÍsetgidµÄʵÀýÓ¦Óã»
5.3 setuidºÍsetgidµÄÉèÖ÷½·¨£»
6¡¢Õ³Ìùλ¼°ÉèÖ÷½·¨£»
7¡¢Îļþ»òĿ¼µÄ¹éÊô¹Øϵ£»
7.1 ¸Ä±äÎļþµÄµ±Êô¹ØϵµÄ¹¤¾ß chown £»
7.2 ¸Ä±äÎļþµÄÊô×鹤¾ß chgrp £»
7.3 ÎļþÊôÖ÷ºÍÊô×éµÄÌØÊâÇé¿ö £»
8¡¢Ó°ÏìÎļþµÄ¶ÁдִÐеÄÒòËØ£»
9¡¢Îļþ±»Ð޸Ļò±»·ÃÎʵÄʱ¼ä£»
10¡¢ÎļþÊôÐÔºÍÎļþϵͳÊôÐԵĹØϵ£»
11¡¢¹ØÓÚ±¾ÎÄ£»
12¡¢ºó¼Ç£»
13¡¢²Î¿¼Îĵµ£»
14¡¢Ïà¹ØÎĵµ£»
+++++++++++++++++++++++++++++++++++++++++++
ÕýÎÄ
+++++++++++++++++++++++++++++++++++++++++++
1¡¢ Linux ÎļþÊôÐÔ¸Å˵£»
Linux Îļþ»òĿ¼µÄÊôÐÔÖ÷Òª°üÀ¨£ºÎļþ»òĿ¼µÄ½Úµã¡¢ÖÖÀࡢȨÏÞģʽ¡¢Á´½ÓÊýÁ¿¡¢Ëù¹éÊôµÄÓû§ºÍÓû§×é¡¢×î½ü·ÃÎÊ»òÐ޸ĵÄʱ¼äµÈÄÚÈÝ£»
[root@localhost ~]# ls -lih
×Ü¼Æ 104K
2408949
-rwxr-xr-x 1 root root    7 04-21 12:47 lsfile.sh
2408830 drwxr-xr-x 2 root
root 4.0K 04-21 12:46 mkuml-2004.07.17
2408260 drwxr-xr-x 2 root root 4.0K
04-21 22:15 mydir
2408258 lrwxrwxrwx 1 root root    7 04-21 22:16 sun001.txt
-> sun.txt
2408263 -rw-r--r-- 2 root root   11 04-20 14:17
sun002.txt
2408263 -rw-r--r-- 2 root root   11 04-20 14:17
sun.txt
½âÊÍ£º
µÚÒ»×ֶΣºinode
µÚ¶þ×ֶΣºÎļþÖÖÀàºÍȨÏÞ£»
µÚÈý×ֶΣº
Ó²Á´½Ó¸öÊý£»
µÚËÄ×ֶΣº
ÊôÖ÷£»
µÚÎå×ֶΣºËù¹éÊôµÄ×飻
µÚÁù×ֶΣºÎļþ»òĿ¼µÄ´


Ïà¹ØÎĵµ£º

LinuxÎļþϵͳÖвéÕÒÎļþÃüÁîÓ÷¨

ÔÚµ±Ç°Ä¿Â¼ÏÂËÑË÷Ö¸¶¨Îļþ£º
find . -name test.txt
ÔÚµ±Ç°Ä¿Â¼ÏÂÄ£ºýËÑË÷Îļþ£º
find . -name '*.txt'
ÔÚµ±Ç°Ä¿Â¼ÏÂËÑË÷Ìض¨ÊôÐÔµÄÎļþ£º
find . -amin -10 # ²éÕÒÔÚϵͳÖÐ×îºó10·ÖÖÓ·ÃÎʵÄÎļþ
find . -atime -2 # ²éÕÒÔÚϵͳÖÐ×îºó48Сʱ·ÃÎʵÄÎļþ
find . -empty # ²éÕÒÔÚϵͳÖÐΪ¿ÕµÄÎļþ»òÕßÎļþ¼Ð
find . -g ......

LinuxÏ°²×°jdkºÍTomcat

Ò»¡¢ÏÂÔØjdk1.5
´Óhttp://www.sun.com/ÍøÕ¾ÏÂÔØjdk1.5
 ÏÂÔØ£ºjdk-1_5_0_15-linux-i586-rpm.bin
¶þ¡¢°²×°jdk  
1.
# chmod +x jdk-1_5_0_15-linux-i586-rpm.bin
# ./jdk-1_5_0_15-linux-i586-rpm.bin
°´Ìáʾ°´ÊäÈëyes,ÔÚͬһĿ¼»áµÃµ½Ò»¸öjdk-1_5_0_15-linux-i586-rpm
ͨ¹ý# rpm –ivh jdk-1 ......

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ÖÐÈçºÎÊÍ·ÅcacheÄÚ´æ free


ÒòΪLINUX
µÄÄÚºË
»úÖÆ£¬Ò»°ãÇé¿öϲ»ÐèÒªÌØÒâÈ¥ÊÍ·ÅÒѾ­Ê¹ÓõÄcache¡£ÕâЩcacheÆðÀ´µÄÄÚÈÝ¿ÉÒÔÔö¼ÓÎļþÒÔ¼°µÄ¶ÁдËٶȡ£
ÏÈ˵ÏÂfreeÃüÁîÔõô¿´ÄÚ´æ
[root@ahsq proc]# free
total used free shared buffers cached
Mem: 515588 295452 220136 0 2060 64040
-/+ buffers/cache: 229352 286236
Swap: 682720 112 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ