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

Linux´ÅÅÌ´æ´¢Çø¹ÜÀíµÄÉîÈë½âÎö

Linux´ÅÅÌ´æ´¢Çø¹ÜÀíËãµÄÉÏÒ»¸ö¼¼ÇÉ£¬ºÜ¶àÅóÓÑÔÚÕâÉÏÃæ³£³£ÎÊÎÒ£¬½ñÌìÎҾͰÑÕâ·½ÃæµÄ¶«Î÷»ã×Üһϣ¬´ÓLinuxÌØÓеĽ»»»·ÖÇøµÄÔ­Àí¿ªÊ¼½éÉÜLinux´ÅÅÌ´æ´¢Çø¹ÜÀíµÄÔ­Àí¼°¼¼ÇÉ¡£
Linux´ÅÅÌ´æ´¢Çø¹ÜÀíÔ­Àíƪ
1. ½»»»¿Õ¼äÊÇʲô
Linux ÖÐµÄ ½»»»¿Õ¼ä£¨Swap space£© ÔÚÎïÀíÄڴ棨RAM£©±»³äÂúʱ±»Ê¹Óá£Èç¹ûϵͳÐèÒª¸ü¶àµÄÄÚ´æ×ÊÔ´£¬¶øÎïÀíÄÚ´æÒѾ­³äÂú£¬ÄÚ´æÖв»»îÔ¾µÄÒ³¾Í»á±»ÒƵ½½»»»¿Õ¼äÈ¥¡£ËäÈ»½»»»¿Õ¼ä¿ÉÒÔΪ´øÓÐÉÙÁ¿ÄÚ´æµÄ»úÆ÷Ìṩ°ïÖú£¬µ«ÊÇÕâÖÖ·½·¨²»Ó¦¸Ã±»µ±×öÊǶÔÄÚ´æµÄÈ¡´ú¡£½»»»¿Õ¼äλÓÚÓ²ÅÌÇý¶¯Æ÷ÉÏ£¬Ëü±È½øÈëÎïÀíÄÚ´æÒªÂý¡£
½»»»¿Õ¼ä¿ÉÒÔÊÇÒ»¸öרÓõĽ»»»·ÖÇø£¨ÍƼöµÄ·½·¨£©£¬½»»»Îļþ£¬»òÁ½ÕßµÄ×éºÏ¡£ ½»»»¿Õ¼äµÄ×Ü´óСӦ¸ÃÏ൱ÓÚÄãµÄ¼ÆËã»úÄÚ´æµÄÁ½±¶ºÍ 32 MBÕâÁ½¸öÖµÖнϴóµÄÒ»¸ö£¬µ«ÊÇËü²»Äܳ¬¹ý 2048 MB£¨2 GB£©¡£
2. Ìí¼Ó½»»»¿Õ¼ä
Linux´ÅÅÌ´æ´¢Çø¹ÜÀíʱ£¬Äã»áÓбØÒªÔÚ°²×°ºóÌí¼Ó¸ü¶àµÄ½»»»¿Õ¼ä¡£ÀýÈ磬Äã°ÑϵͳÄÚ´æ´Ó 64 MB Éý¼¶µ½ 128 MB£¬µ«ÊÇÄãÖ»ÓÐ 128 MB µÄ½»»»ÄÚ´æ¡£Èç¹ûÄãÖ´ÐеÄÊÇ´óÁ¿Ê¹ÓÃÄÚ´æµÄ²Ù×÷»òÔËÐÐÐèÒª´óÁ¿ÄÚ´æµÄ³ÌÐò£¬°Ñ½»»»ÇøÔö¼Óµ½ 256 MB ¿ÉÄÜ»á¶ÔÄãÓÐÀû¡£
ÄãÓÐÁ½ÖÖÑ¡Ôñ£ºÌí¼ÓÒ»¸ö½»»»·ÖÇø»òÌí¼ÓÒ»¸ö½»»»Îļþ¡£ÍƼöÄãÌí¼ÓÒ»¸ö½»»»·ÖÇø£¬²»¹ý£¬ÈôÄãûÓжàÉÙ¿ÕÏпռä¿ÉÓ㬴´½¨½»»»·ÖÇø¿ÉÄܻ᲻´óÈÝÒס£
ÒªÌí¼ÓÒ»¸ö½»»»·ÖÇø£¨¼ÙÉè /dev/hdb2 ÊÇÄãÏëÌí¼ÓµÄ½»»»·ÖÇø£©£º
Ó²ÅÌÇý¶¯Æ÷²»ÄÜÔÚ±»Ê¹Ó㨷ÖÇø²»Äܱ»¹ÒÔØ£¬½»»»·ÖÇø²»Äܱ»ÆôÓã©¡£Òª´ïµ½ÕâһĿµÄµÄ×î¼òµ¥Linux´ÅÅÌ´æ´¢Çø¹ÜÀí·½·¨ÊÇÔÚ¾ÈԮģʽÏÂÒýµ¼ÄãµÄϵͳ¡£µ±Ìáʾ¹ÒÔØÎļþϵͳʱ£¬Ñ¡Ôñ ¡¸Ìø¹ý¡¹ ¡£
Èç¹ûÇý¶¯Æ÷²»°üº¬Èκα»Ê¹ÓõķÖÇø£¬Ä㻹¿ÉÒÔжÔØÕâЩ·ÖÇø£¬Ê¹Óà swapoff ÃüÁîÀ´¹Ø±ÕÓ²ÅÌÇý¶¯Æ÷ÉϵÄËùÓн»»»¿Õ¼ä¡£
Linux´ÅÅÌ´æ´¢Çø¹ÜÀí¼¼ÇÉƪ
ʹÓà parted »ò fdisk À´´´½¨½»»»·ÖÇø¡£ parted ±È fdisk ʹÓÃÆðÀ´¸ü·½±ã£¬Òò´Ë£¬Ö»ÓÐ parted ÔÚÕâÀï»á±»ËµÃ÷¡£ÒªÊ¹Óà parted À´´´½¨½»»»·ÖÇø£º
ÔÚ shell ÌáʾÏÂÒÔ¸ùÓû§Éí·Ý¼üÈëÃüÁ parted /dev/ hdb ¡£ÕâÀïµÄ /dev/ hdb ÊÇÄãµÄ´øÓпÕÏпռäµÄÓ²ÅÌÇý¶¯Æ÷µÄÉ豸Ãû³Æ¡£
ÔÚ (parted) ÌáʾÏ£¬¼üÈë print À´²é¿´ÏÖ´æµÄ·ÖÇøºÍ¿ÕÏпռäµÄÊýÁ¿¡£ÆðÖ¹ÖµÒÔ MB Ϊµ¥Î»¡£Åж¨Ó²ÅÌÇý¶¯Æ÷ÉϵĿÕÏпռäÊýÁ¿£¬ÒÔ¼°ÄãÏë¸øн¨µÄ½»»»·ÖÇø·ÖÅäµÄ¿Õ¼äÊýÁ¿¡£
ÔÚ (parted) ÌáʾÏ£¬¼üÈë mkpartfs part-type linux-swap start end £¬ÕâÀïµÄ part-type ÊÇ primary¡¢extended¡¢logical ÖеÄÒ»¸ö£¬ start ÊÇ·ÖÇøµÄÆ


Ïà¹ØÎĵµ£º

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ÌØÊâÎļþ£¨2£©——Á´½ÓÎļþ

µÚ¶þÕ Á´½ÓÎļþ
¡¡¡¡Á´½ÓÎļþÓеãÀàËÆÓÚWindows µÄËùν¿ì½Ý·½Ê½£¬µ«²¢²»ÍêÈ«Ò»Ñù¡£Á´½ÓÓÐÁ½ÖÖ·½Ê½£¬ÈíÁ´½ÓºÍÓ²Á´½Ó¡£
¡¡¡¡ÈíÁ´½ÓÎļþ
¡¡¡¡ÈíÁ´½ÓÓֽзûºÅÁ´½Ó£¬Õâ¸öÎļþ°üº¬ÁËÁíÒ»¸öÎļþµÄ·¾¶Ãû¡£¿ÉÒÔÊÇÈÎÒâÎļþ»òĿ¼£¬¿ÉÒÔÁ´½Ó²»Í¬ÎļþϵͳµÄÎļþ¡£Á´½ÓÎļþÉõÖÁ¿ÉÒÔÁ´½Ó²»´æÔÚµÄÎļþ£¬Õâ¾Í²úÉúÒ»°ã³Æ֮Ϊ"¶ÏÁ´"µÄÎÊÌ ......

linux vi ²Ù×÷

ÎÄÊé±à¼­Æ÷½éÉÜ [VI]
¡¡¡¡vi ( m ) ÔÚ´ó¶àÊýµÄ unix ϵͳÖÐ ( °üÀ¨ linux ) ¶¼ÄÚ½¨ vi ( m ) ±à¼­Æ÷¡£Èç¹ûÄú¼´½«³ÉΪ linux ϵͳ¹ÜÀíÕߣ¬»òÊdz¤Ê±¼äÔÚ linux »·¾³Öй¤×÷£¬Äú×îºÃѧ»á vi ( m )£¬ÒòΪÄú³ÙÔç»áʹÓõ½Ëü£¬ÓÉÆäÊÇϵͳ³ö×´¿öʱ¡£¶ÔÐÂÊÖ¶øÑÔ£¬µÚÒ»´ÎʹÓà vi ( m ) µÄ¹ý³ÌÊǷdz£Í´¿àµÄ£¬ÉõÖÁÌÖÑáËü£¬ÒòΪËüµÄʹÓ÷ ......

ÔÚWindowsÏÂÔ¶³Ì×ÀÃæÁ¬½ÓLinux XManagerƪ

×÷Õߣº¸ßÕÅÔ¶Öõ(HiLoveS)
²©¿Í£ºhttp://www.cnblogs.com/hiloves/
תÔØÇë±£Áô¸ÃÐÅÏ¢
XManager ÊÇÒ»¸ö¼òµ¥Ò×ÓõĸßÐÔÄܵÄÔËÐÐÔÚWindowsƽ̨ÉϵÄX-ServerÈí¼þ£¬¶øGnomeºÍKDE¾ÍÊÇX-Client£¬LinuxϵÄX- ServerÔòΪXorg¡£ËüÄÜ°ÑÔ¶¶ËUnix/LinuxµÄ×ÀÃæÎÞ·ìµØ´øµ½ÄãµÄWindowsÉÏ£¬ÉõÖÁµ±ÄãµÄµçÄÔÊÇÔÚÄÚÍø»ò·À»ðǽºó£¬ÄãÒ²ÄÜͨ ......

LinuxµÄread/write¡¢fread/fwrite¡¢open/fopenÇø±ð

1,freadÊÇ´ø»º³åµÄ,read²»´ø»º³å.
2,fopenÊDZê×¼cÀﶨÒåµÄ,openÊÇPOSIXÖж¨ÒåµÄ.
3,fread¿ÉÒÔ¶ÁÒ»¸ö½á¹¹.readÔÚlinux/unixÖжÁ¶þ½øÖÆÓëÆÕͨÎļþûÓÐÇø±ð.
4,fopen²»ÄÜÖ¸¶¨Òª´´½¨ÎļþµÄȨÏÞ.open¿ÉÒÔÖ¸¶¨È¨ÏÞ.
5,fopen·µ»ØÖ¸Õë,open·µ»ØÎļþÃèÊö·û(ÕûÊý).
6,linux/unixÖÐÈκÎÉ豸¶¼ÊÇÎļþ,¶¼¿ÉÒÔÓÃopen,read.
Èç¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ