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

linuxÏÂÐÔÄÜ·ÖÎö·½·¨ÊµÀý

ijһÌì,Ò»¸ö¿Í»§´òµç»°À´ÐèÒª¼¼Êõ°ïÖú,²¢±§Ô¹Æ½³£15Ãë¾Í¿ÉÒÔ´ò¿ªµÄÍøÒ³ÏÖÔÚÐèÒª20·ÖÖӲſÉÒÔ´ò¿ª.
¾ßÌåϵͳÅäÖÃÈçÏÂ:
RedHat Enterprise Linux 3 update 7
Dell 1850 Dual Core Xenon Processors, 2 GB RAM, 75GB 15K Drives
Custom LAMP software stack(Òë×¢:Llinux+apache+mysql+php »·¾³)
ÐÔÄÜ·ÖÎöÖ®²½Öè
1. Ê×ÏÈʹÓÃvmstat ²é¿´´óÖµÄϵͳÐÔÄÜÇé¿ö:
# vmstat 1 10
procs memory swap io system cpu
r b swpd free buff cache si so bi bo in cs us sy id wa
1 0 249844 19144 18532 1221212 0 0 7 3 22 17 25 8 17 18
0 1 249844 17828 18528 1222696 0 0 40448 8 1384 1138 13 7 65 14
0 1 249844 18004 18528 1222756 0 0 13568 4 623 534 3 4 56 37
2 0 249844 17840 18528 1223200 0 0 35200 0 1285 1017 17 7 56 20
1 0 249844 22488 18528 1218608 0 0 38656 0 1294 1034 17 7 58 18
0 1 249844 21228 18544 1219908 0 0 13696 484 609 559 5 3 54 38
0 1 249844 17752 18544 1223376 0 0 36224 4 1469 1035 10 6 67 17
1 1 249844 17856 18544 1208520 0 0 28724 0 950 941 33 12 49 7
1 0 249844 17748 18544 1222468 0 0 40968 8 1266 1164 17 9 59 16
1 0 249844 17912 18544 1222572 0 0 41344 12 1237 1080 13 8 65 13
·ÖÎö:
1,²»»áÊÇÄÚ´æ²»×ãµ¼ÖÂ,ÒòΪswapping ʼÖÕû±ä»¯(si ºÍ so).¾¡¹Ü¿ÕÏÐÄÚ´æ²»¶à(free),µ«swpd ҲûÓб仯.
2,CPU ·½ÃæҲûÓÐÌ«´óÎÊÌâ,¾¡¹ÜÓÐһЩÔËÐжÓÁÐ(procs r),µ«´¦ÀíÆ÷»¹Ê¼ÖÕÓÐ50% ¶àµÄidle(CPU id).
3,ÓÐÌ«¶àµÄÉÏÏÂÎÄÇл»(cs)ÒÔ¼°disk block´ÓRAMÖỶÁÈë(bo).
4,CPU »¹ÓÐƽ¾ù20% µÄI/O µÈ´ýÇé¿ö.
½áÂÛ:
´ÓÒÔÉÏ×ܽá³ö,ÕâÊÇÒ»¸öI/O Æ¿¾±.
2. È»ºóʹÓÃiostat ¼ì²éÊÇË­ÔÚ·¢³öIO ÇëÇó:
# iostat -x 1
Linux 2.4.21-40.ELsmp (mail.example.com) 03/26/2007
avg-cpu: %user %nice %sys %idle
30.00 0.00 9.33 60.67
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
/dev/sda 7929.01 30.34 1180.91 14.23 7929.01 357.84 3964.50 178.92 6.93 0.39 0.03 0.06 6.69
/dev/sda1 2.67 5.46 0.40 1.76 24.62 57.77 12.31 28.88 38.11 0.06 2.78 1.77 0.38
/dev/sda2 0.00 0.30 0.07 0.02 0.57 2.57 0.29 1.28 32.86 0.00 3.81 2.64 0.03
/dev/sda3 7929.01 24.58 1180.44 12.45 7929.01 297.50 3964.50 148.75 6.90 0.32 0.03


Ïà¹ØÎĵµ£º

Linux µÄ¶àÏ̱߳à³ÌµÄ¸ßЧ¿ª·¢¾­Ñé

2009 Äê 4 ÔÂ 23 ÈÕ
±¾ÎÄÖÐÎÒÃÇÕë¶Ô Linux É϶àÏ̱߳à³ÌµÄÖ÷ÒªÌØÐÔ×ܽá³ö 5 Ìõ¾­Ñ飬ÓÃÒÔ¸ÄÉÆ Linux ¶àÏ̱߳à³ÌµÄÏ°¹ßºÍ±ÜÃâÆäÖеĿª·¢ÏÝÚå¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃÇ´©²åһЩ Windows µÄ±à³ÌÓÃÀýÓÃÒÔ¶Ô±È Linux ÌØÐÔ£¬ÒÔ¼ÓÉî¶ÁÕßÓ¡Ïó¡£
±³¾°
Linux ƽ̨ÉϵĶàÏ̳߳ÌÐò¿ª·¢Ïà¶ÔÓ¦ÆäËûƽ̨£¨±ÈÈç Windows£©µÄ¶àÏß³Ì API ÓÐһЩϸ΢ ......

Linux ÄÚ´æ°ó¶¨ÔÚ¾Ö²¿´æ´¢Æ÷µÄʵÏÖ


3.2.1 Linux ÄÚ´æ°ó¶¨ÔÚ¾Ö²¿´æ´¢Æ÷µÄʵÏÖ×ÜÌå²½Öè
×ÜÌå²½Ö裺
l         ²ÉÓ÷½°¸Èý£¬ÔÚÔÚÔ­À´·ÖÎöµÄ»ù´¡ÉÏ£¬ÒÔ¼°ÒÑÖªLinuxϵͳÄÚ´æµÄ³õʼ»¯µÄÇé¿ö£¬¶ÔÄں˴úÂë½øÐÐÐ޸ģ¬Ö÷Òª°üÀ¨È·¶¨ÐÂÇøµÄ·¶Î§£¬½¨Á¢ÐÂÇø£¬ÖØжԷÖÅäÄÚ´æµÄ·ÖÅä»úÖƽøÐÐÉèÖá£
l    &n ......

LinuxÏ°²×°ºÍжÔØvmware tool

vmware tool°²×°²½Öè
1¡¢±£Ö¤Òª°²×°VMWare ToolsµÄÐéÄâ²Ù×÷ϵͳ¿ªÆô¡£
2¡¢°´Ï CTRL+ALT×éºÏ¼ü£¬½øÈëÖ÷²Ù×÷ϵͳ£¬µã»÷VMWARE״̬À¸[b][font=ËÎÌå]°²×°[/font][/b]Ìáʾ£¬»òÕßµã»÷ VMÑ¡ÔñInstall vmware tools….
  
3¡¢È·ÈÏ°²×°VMWARE TOOLS¡£ £¨VMWareToolsÊÇÔÚÐéÄâµÄ²Ù×÷ϵͳÖа²×°£¬²»ÊÇÔÚÎïÀí»úÉÏ° ......

linux ÈçºÎ½øÈëͼÐνçÃæ

1.×ÔÆô¶¯£º
ÔÚ/etc/inittabÎļþÖÐÉèÖãº
#   Default   runlevel.   (Do   not   set   to   0   or   6)
id:5:initdefault:
2.×Ö·ûÖÕ¶ËģʽÏÂÆô¶¯x-windows:
startx ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ