Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 iptableÎĵµ

×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......

Linux mysql ·þÎñÆ÷ÂýµÄÔ­Òò

Õ⼸ÌìLinux·þÎñÆ÷ºÜÂý,ºÜ׿±ÕÒ²»µ½½â¾ö°ì·¨!ºó°Ù¶ÈÏà¹Ø×ÖÑÛ,²éÕÒµ½ÊÇMySQLµÄÎÊÌâ,
ÈçÏÂΪ½â¾ö·½°¸
:
Á¬½ÓMySQLËÙ¶ÈÂýµÄ½â¾ö·½·¨.
PHPÔ¶³ÌÁ¬½ÓMYSQLËÙ¶ÈÂý,ÓÐʱԶ³ÌÁ¬½Óµ½MYSQLÓÃʱ4-20Ãë²»µÈ,±¾µØÁ¬½ÓMYSQLÕý³£,³öÏÖÕâÖÖÎÊÌâµÄÖ÷ÒªÔ­ÒòÊÇ,ĬÈÏ°²×°µÄ
MYSQL¿ªÆôÁËDNSµÄ·´Ïò½âÎö,ÔÚMY.CNF(UNIX»òLINUXϵͳÏÂ)»òMY.INI ......

Linuxϵͳ /etc/fstab¸÷¸ö×ֶκ¬Òå½âÊÍ

¡¡# fstabÎļþµÄ×÷ÓÃ
¡¡¡¡Îļþ/etc/fstab´æ·ÅµÄÊÇϵͳÖеÄÎļþϵͳÐÅÏ¢¡£µ±ÕýÈ·µÄÉèÖÃÁ˸ÃÎļþ£¬Ôò¿ÉÒÔͨ¹ý"mount /directoryname"ÃüÁîÀ´¼ÓÔØÒ»¸öÎļþϵͳ£¬Ã¿ÖÖÎļþϵͳ¶¼¶ÔÓ¦Ò»¸ö¶ÀÁ¢µÄÐУ¬Ã¿ÐÐÖеÄ×ֶζ¼Óпոñ»òtab¼ü·Ö¿ª¡£Í¬Ê±fsck¡¢ mount¡¢umountµÄµÈÃüÁÀûÓøóÌÐò¡£
¡¡¡¡# fstabÎļþ¸ñʽ
¡¡¡¡ÏÂÃæÊÇ/etc/fata ......

Linux½ø³Ì¼äͨÐÅ£º¹ÜµÀ¼°ÓÐÃû¹ÜµÀ ÊÕ²Ø

 ¹ÜµÀ¼°ÓÐÃû¹ÜµÀ
ÔÚ±¾ÏµÁÐÐòÖÐ×÷Õ߸ÅÊöÁË linux ½ø³Ì¼äͨÐŵļ¸ÖÖÖ÷ÒªÊֶΡ£ÆäÖйܵÀºÍÓÐÃû¹ÜµÀÊÇ×îÔçµÄ½ø³Ì¼äͨÐÅ»úÖÆÖ®Ò»£¬¹ÜµÀ¿ÉÓÃÓÚ¾ßÓÐÇ×Ôµ¹Øϵ½ø³Ì¼äµÄͨÐÅ£¬ÓÐÃû¹ÜµÀ¿Ë·þÁ˹ܵÀûÓÐÃû×ÖµÄÏÞÖÆ£¬Òò´Ë£¬³ý¾ßÓйܵÀËù¾ßÓеŦÄÜÍ⣬Ëü»¹ÔÊÐíÎÞÇ×Ôµ¹Øϵ½ø³Ì¼äµÄͨÐÅ¡£ ÈÏÇå¹ÜµÀºÍÓÐÃû¹ÜµÀµÄ¶Áд¹æÔòÊÇÔÚ³ÌÐòÖÐÓ¦Ó ......

linux file lock

linux file lock
linuxµÄÎļþËø·ÖΪÁ½ÖÖ£º
Ò»ÖÖÊÇadvasory lock£¬Ö»Äܱ£Ö¤½ø³ÌÄÚ¶Ôͬһ¸öÎļþËøµÄ»¥³âÓÐЧ£¬µ«ÊǶà¸ö½ø³Ì¿ÉÒÔͬʱ¶ÔÒ»¸öÎļþ¼Ó»¥³âµÄËø£¬ËùÒÔÕâÖÖËøÊǼÓÔÚfile ½á¹¹ÉÏ;Ò»ÖÖÊÇmandatory lock£¬ÕâÖÖËø¿ÉÒÔ±£Ö¤¶à¸ö½ø³ÌÎÞ·¨¶Ôͬһ¸öÎļþ¶¼¼ÓÉÏ»¥³âËø£¬ËùÒÔÕâÖÖËøÊǼÓÔÚinode ½á¹¹Éϵġ£
µ±¼Ómandatroy lockÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ