linuxµÄÎļþϵͳÈÏʶ£¨1£©
1.̸µ½linuxµÄÎļþϵͳ£¬ÎÒÃDZØÐë¹Ø×¢/etc/fstabÎļþµÄÄÚÈÝ£»ÔÚlinuxÖеÄËùÓйÒÔØ·ÖÇøºÍÉ豸¶¼ÔÚfstab±í¸ñÖС£
/etc/fstab±í¸ñÖеÄÑ¡ÔñÏî²ÎÊý¶¨ÒåÈçÏ£º
ro or rw
Read only or read write
noauto
Do not respond to mount -a. Used for external devices CDROMs ...
noexec
Executables cannot be started from the device
nosuid
Ignore SUID bit throughout the filesystem
nodev
Special device files such as block or character devices are ignored
noatime
Do not update atimes (performance gain)
owner
The device can be mounted only by it's owner
user
Implies noexec, nosuid and nodev. A single user's name is added to mtab so that other users may not unmount the devices
users
Same as user but the device may be unmounted by any other user
̸µ½ÎļþϵͳÎÒÃDZØÐëÒªÁ˽âlinuxÎļþϵͳÖеÄmountÃüÁËü¿ÉÒÔʵÏÖ¹ÒÔØÒ»¸öеÄÉ豸»ò·ÖÇøµ½ÎÒÃǵÄlinuxϵͳÖУ¬mountÃüÁîµÄËùÓвÙ×÷¶¼»á¸üе½/etc/mtabÎļþÖУ¬»¹ÓÐÒ»¸öÓë´ËÎļþÏàËƵÄÎļþʱ/proc/mounts¡£
2.µ±ÏµÍ³Æô¶¯ºóÔÚrc.sysinit½Å±¾(Ò²¾ÍϵͳÆô¶¯ºó×Ô¶¯ÔËÐеÄÒ»¸ö½Å±¾£¬µ«²»ÊÇÔÚËùÓеÄlinuxϵͳÖж¼ÄÜÕÒµ½Ëü£¬Ò²Ðí±ðÈË°ÑËü¸ÄÃûÁË)ÖУ¬mountÃüÁî»á¹ÒÔØ/etc/fstabÎļþÖеÄËùÓзÖÇø»òÉ豸¡£
mountÃüÁÄܷdz£Ç¿´ó£¬³ýÁ˼òµ¥¹ÒÔØÉ豸ÒÔÍ⻹ÌṩºÜ¶àÆäËû¹¦ÄÜ£¬±ÈÈ磺Òƶ¯¹ÒÔص㣬±êÖ¾¹ÒÔØÉ豸µÄÊôÐÔ£¬¹²Ïí¡¢Ë½ÓС¢¼Ì³Ð...£¬Èç¹ûÄãÓÐÐËȤÇëÔÚlinuxÃüÁîÐÐÏÂman mount¡£
3.н¨Ò»¸ö½»»»·ÖÇø
ÎÒÃÇ¿ÉÒÔͨ¹ýÃüÁîswapon -aÀ´¿ªÆôÒѾÓеĽ»»»·ÖÇø£»
Èç¹ûûÓн»»»·ÖÇø£¬ÎÒÃÇ»¹¿ÉÒÔͨ¹ýÏÂÃæµÄ¼¸ÌõÃüÁî×éºÏн¨Ò»¸ö½»»»·ÖÇø²¢´ò¿ªËü£»
a. dd if=/dev/zero of=/tmp/SWAPFILE bs=1k count=10240 #´Ë´¦ddÃüÁîµÄ¾ßÌå²ÎÊýÇë×ÔÐÐѧϰ
b. mkswap /tmp/SWAPFILE #´Ë´¦mkswap²ÎÊý¼òµ¥¾ÍÊǽ¨Á¢Ò»¸ö½»»»·ÖÇø
c. swapon /tmp/SWAPFILE #´Ë´¦Ê¹ÓÃswapon´ò¿ªÐ½¨µÄ½»»»·ÖÇø
d. cat /proc/swaps #´Ë´¦catΪһ¸ö¼òµ¥µÄÔĶÁÆ÷£¬²é¿´Äãн¨µÄ½»»»·ÖÇø
Filename Type Size Used Priority
/dev/hda6 &n
Ïà¹ØÎĵµ£º
·À»ðǽÏàÓ¦¶Ë¿ÚûÓдò¿ª¡£
´ò¿ª·½·¨ÈçÏ£º
vi /etc/sysconfig/iptables
¼ÓÈëÈçϵÄÒ»ÐУº
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3690 -j ACCEPT
ÖØÆôiptables:
/etc/init.d/iptables restart
²é¿´¶Ë¿ÚÊÇ·ñÕæµÄ´ò¿ª:
/etc/init.d/iptables status ......
¾²Ì¬Á´½Ó¿âÊÇÒÔ.a½áβµÄÎļþ,Ò»°ãÊÇÓù¤¾ß½«¶à¸ö.oÎļþºÏ²¢µ½Ò»Æð×é³É¾²Ì¬¿â
¶¯Ì¬Á´½Ó¿âÊÇÒÔ.so½áβµÄÎļþ,ºÍwindowsϵÄdllÎļþÀàËÆ¡£
¾²Ì¬Á´½Ó¿â¶¼¿ÉÒÔÔÚ³ÌÐò±àÒë¹ý³ÌÖÐÓà -L²ÎÊýÀ´Ö¸¶¨ËûÃÇ -L/opt/lib/XXX.a
¶¯Ì¬Á´½Ó¿âÒ»°ãÊÇÔÚLD_LIBRARY_PATHÖÐÀ´Ö¸¶¨ËÑË÷·¾¶,Ò²¿ÉÒÔÔÚ -L/opt/lib ºóÃæ¼ÓÒ»¸ö lXX,¶ÔÓ¦ÁËlibÖеÄXX. ......
´´½¨Ê±¼ä£º2010-01-27
×÷ÕߣºSteven Yang
E-mail£ºmqyoung@gmail.com
ΪÁ˸ßЧµÄ¶Ôkernel½øÐе÷ÊÔ£¬×÷ÕßÔÚʵÑéÊÒÀûÓÃÒÑÓеÄ×ÊÔ´½øÐл·¾³ÅäÖá£Ê×ÏÈÊÇÓ²¼þ»·¾³£¬ÎÒÓÐÁ½¸öPC£¬
Ò»¸öÊÇP III£¬Debian£¨Target£©
Ò»¸öÊÇAMD 64£¬Ubuntu£¨Developer£©
Ҫͨ¹ýDeveloperµ÷ÊÔTarget£ ......
Àý×ÓʵÏÖÁËÖ±½ÓдÆÁµÄ¹¦ÄÜ£¬¼´°ÑÆÁÄ»Çå¿Õ£¨±äºÚ£©£¬³ÌÐòµÄÁ÷³Ì´óÖÂΪ£º´ò¿ªÒ»¸öFrameBufferÉ豸£»Í¨¹ýmmapµ÷ÓðÑÏÔ¿¨µÄÎïÀíÄÚ´æ¿Õ¼äÓ³Éäµ½Óû§¿Õ¼ä£»Í¨¹ýÓ³Éä¹Øϵֱ½ÓдÄÚ´æ¡£
Í·Îļþ
////////////////////////////////////////
///////////// fbtools.h ////////////////
////////////////////////////////////////
# ......
¡¾Ç¶ÈëʽLinuxѧϰÆß²½ÇúÖ®µÚÎåƪ LinuxÄں˼°Çý¶¯±à³Ì¡¿È«Ãæ½âÎöLinuxÄں˵Äͬ²½Ó뻥³â»úÖÆ--ͬ²½Æª ÊÕ²Ø
Powered by CSDN Blog
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/sailor_8318/archive/2008/06/30/2599357.aspx ......