linux VFSµÄÊý¾Ý½á¹¹
£¨1£©»ù±¾¸ÅÄî
´Ó±¾ÖÊÉϽ²£¬ÎļþϵͳÊÇÌØÊâµÄÊý¾Ý·Ö²ã´æ´¢½á¹¹£¬Ëü°üº¬Îļþ¡¢Ä¿Â¼ºÍÏà¹ØµÄ¿ØÖÆÐÅÏ¢¡£ÎªÁËÃèÊöÕâ½á¹¹£¬LinuxÒýÈëһЩ»ù±¾¸ÅÄî:
A£¬Îļþ£ºÒ»×éÔÚÂß¼ÉϾßÓÐÍêÕûÒâÒåµÄÐÅÏ¢ÏîµÄϵÁС£ÁíÍ⣬ÔÚLinuxÖУ¬³ýÁËÆÕͨÎļþ£¬ÆäËûÖîÈçĿ¼¡¢É豸¡¢Ì×½Ó×ÖµÈÒ²ÒÔÎļþ±»¶Ô´ý¡£×ÜÖ®£¬“Ò»ÇнÔÎļþ”¡£
B£¬Ä¿Â¼£ºÄ¿Â¼ºÃ±ÈÒ»¸öÎļþ¼Ð£¬ÓÃÀ´ÈÝÄÉÏà¹ØÎļþ¡£ÒòΪĿ¼¿ÉÒÔ°üº¬×ÓĿ¼£¬ËùÒÔĿ¼ÊÇ¿ÉÒÔ²ã²ãǶÌ×£¬ÐγÉÎļþ·¾¶¡£ÔÚLinuxÖУ¬Ä¿Â¼Ò²ÊÇÒÔÒ»ÖÖÌØÊâÎļþ±»¶Ô´ýµÄ£¬ËùÒÔÓÃÓÚÎļþµÄ²Ù×÷ͬÑùÒ²¿ÉÒÔÓÃÔÚĿ¼ÉÏ¡£
C£¬Ä¿Â¼ÏÔÚÒ»¸öÎļþ·¾¶ÖУ¬Â·¾¶ÖеÄÿһ²¿·Ö¶¼±»³ÆΪĿ¼ÏÈç·¾¶/home/source/helloworld.cÖУ¬Ä¿Â¼ /, home, sourceºÍÎļþ helloworld.c¶¼ÊÇÒ»¸öĿ¼Ïî¡£
D£¬Ë÷Òý½Úµã£ºÓÃÓÚ´æ´¢ÎļþµÄÔªÊý¾ÝµÄÒ»¸öÊý¾Ý½á¹¹¡£ÎļþµÄÔªÊý¾Ý£¬Ò²¾ÍÊÇÎļþµÄÏà¹ØÐÅÏ¢£¬ºÍÎļþ±¾ÉíÊÇÁ½¸ö²»Í¬µÄ¸ÅÄî¡£Ëü°üº¬µÄÊÇÖîÈçÎļþµÄ´óС¡¢ÓµÓÐÕß¡¢´´½¨Ê±¼ä¡¢´ÅÅÌλÖõȺÍÎļþÏà¹ØµÄÐÅÏ¢¡£
E£¬³¬¼¶¿é£ºÓÃÓÚ´æ´¢ÎļþϵͳµÄ¿ØÖÆÐÅÏ¢µÄÊý¾Ý½á¹¹¡£ÃèÊöÎļþϵͳµÄ״̬¡¢ÎļþϵͳÀàÐÍ¡¢´óС¡¢Çø¿éÊý¡¢Ë÷Òý½ÚµãÊýµÈ£¬´æ·ÅÓÚ´ÅÅ̵ÄÌض¨ÉÈÇøÖС£
ÎåÕßÖ®¼äµÄ¹Øϵ£º
³¬¼¶¿éÊÇÓÃÀ´ÃèÊöÒ»¸öÎļþϵͳµÄÐÅÏ¢£¬¶ÀÁ¢µÄ´æ´¢ÔÚÌض¨ÉÈÇøÖУ»ÎļþµÄÊý¾Ý¿éºÍĿ¼¿éÔò¶¼ÊÇ×÷ΪÎļþÀ´´¦ÀíµÄ£¬½ÚµãÔòÓÃÀ´´æ´¢ÎļþµÄÏà¹ØÐÅÏ¢£¬ÓÃÀ´Ë÷Òý¡£
¹ØÓÚÎļþϵͳµÄÈý¸öÒ×»ìÏýµÄ¸ÅÄ
A£¬´´½¨£ºÒÔijÖÖ·½Ê½¸ñʽ»¯´ÅÅ̵Ĺý³Ì¾ÍÊÇÔÚÆäÖ®ÉϽ¨Á¢Ò»¸öÎļþϵͳµÄ¹ý³Ì¡£´´½¨ÎÄÏÖϵͳʱ£¬»áÔÚ´ÅÅ̵ÄÌض¨Î»ÖÃдÈë¹ØÓÚ¸ÃÎļþϵͳµÄ¿ØÖÆÐÅÏ¢¡£
B£¬×¢²á£ºÏòÄں˱¨µ½£¬ÉùÃ÷×Ô¼ºÄܱ»ÄÚºËÖ§³Ö¡£Ò»°ãÔÚ±àÒëÄں˵Äʱºî×¢²á£»Ò²¿ÉÒÔ¼ÓÔØÄ£¿éµÄ·½Ê½ÊÖ¶¯×¢²á¡£×¢²á¹ý³Ìʵ¼ÊÉÏÊǽ«±íʾ¸÷ʵ¼ÊÎļþϵͳµÄÊý¾Ý½á¹¹struct file_system_type ʵÀý»¯¡£
C£¬°²×°£ºÒ²¾ÍÊÇÎÒÃÇÊìϤµÄmount²Ù×÷£¬½«Îļþϵͳ¼ÓÈëµ½LinuxµÄ¸ùÎļþϵͳµÄĿ¼Ê÷½á¹¹ÉÏ£»ÕâÑùÎļþϵͳ²ÅÄܱ»·ÃÎÊ¡£
£¨2£©Êý¾Ý½á¹¹
VFSÒÀ¿¿ËĸöÖ÷ÒªµÄÊý¾Ý½á¹¹ºÍһЩ¸¨ÖúµÄÊý¾Ý½á¹¹À´ÃèÊöÆä½á¹¹ÐÅÏ¢£¬ÕâЩÊý¾Ý½á¹¹±íÏֵþÍÏñÊǶÔÏó£¬ÕâЩ²Ù×÷¶ÔÏóÃèÊöÁËÄÚºËÕë¶ÔÕ⼸¸öÖ÷ÒªµÄ¶ÔÏó¿ÉÒ
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃ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 ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
´ËÇ°£¬ÖйúµÄ
Linux“
²úÒµ”²¢Î´Óë¹ú¼Ê
Linux
Ô˶¯Õýʽ½Ó¹ì£¬×ÔÐÐÆäÊÇ¡£µ«ÊÇ£¬´Ó´ËÒÔºó£¬Çé¿ö¾Í²»Í¬ÁË¡£ÎªÊ²Ã´£¿
5
ÔÂ
10
ÈÕ£¬¹ú¼Ê
Linu ......
LINUXÍø¿¨°ó¶¨¾ÛºÏÉèÖÃ
1.½¨Á¢ÐéÄâÍøÂç½Ó¿ÚÅäÖÃÎļþ£ºifcfg-bond0
cd /etc/sysconfig/ network-scripts/
[root@rhas-13 root]# vi ifcfg-bond0 (½¨Á¢ifcfg-bond0Îļþ)
2.±à¼ÐéÄâÍøÂç½Ó¿ÚÅäÖÃÎļþ
#vi ifcfg-bond0
½«µÚÒ»ÐÐ¸Ä³É DEVICE=bond0
# cat ifcfg-bond ......
shellÊÇÓû§ºÍLinux²Ù×÷ϵͳ֮¼äµÄ½Ó¿Ú¡£LinuxÖÐ
ÓжàÖÖshell£¬ÆäÖÐȱʡʹÓõÄÊÇBash¡£±¾Õ½²ÊöÁËshellµÄ¹¤×÷ÔÀí£¬shellµÄÖÖÀ࣬shellµÄÒ»°ã²Ù×÷¼°BashµÄÌØÐÔ¡£
¡¡¡¡Ê²Ã´ÊÇshell
¡¡¡¡LinuxϵͳµÄshell×÷Ϊ²Ù×÷ϵͳµÄÍâ¿Ç£¬ÎªÓû§Ìá
¹©Ê¹ÓòÙ×÷ϵͳµÄ½Ó¿Ú¡£ËüÊÇÃüÁîÓïÑÔ¡¢ÃüÁî½âÊͳÌÐò¼°³ÌÐòÉè¼ÆÓïÑÔµÄͳ³Æ¡£
¡¡¡¡she ......
Ò». yumÊÇʲô
yum = Yellow dog Updater, Modified
Ö÷Òª¹¦ÄÜÊǸü·½±ãµÄÌí¼Ó/ɾ³ý/¸üÐÂRPM°ü.
ËüÄÜ×Ô¶¯½â¾ö°üµÄÒÐÀµÐÔÎÊÌâ.
ËüÄܱãÓÚ¹ÜÀí´óÁ¿ÏµÍ³µÄ¸üÐÂÎÊÌâ
×¢:ΪʲôҪʹÓÃyum¶ø²»ÓÃapt,×î¼òµ¥µÄÔÒò,Fedora×Ô´ø
¶þ. ......