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

linux topÃüÁîÏê½â

topÃüÁîºÍpsÃüÁîµÄ»ù±¾×÷ÓÃÊÇÏàͬµÄ£¬ÏÔʾϵͳµ±Ç°µÄ½ø³ÌºÍÆäËü×´¿ö£»µ«ÊÇtopÊÇÒ»¸ö¶¯Ì¬ÏÔʾ¹ý³Ì£¬¼´¿ÉÒÔͨ¹ýÓû§°´¼üÀ´²»¶Ïˢе±Ç°×´Ì¬¡£Èç¹ûÔÚǰִ̨ÐиÃÃüÁËü½«¶Àռǰ̨£¬Ö±µ½Óû§ÖÕÖ¹¸Ã³ÌÐòΪֹ¡£±È½Ï׼ȷµÄ˵£¬topÃüÁîÌṩÁËʵʱµÄ¶Ôϵͳ´¦ÀíÆ÷µÄ״̬¼àÊÓ¡£Ëü½«ÏÔʾϵͳÖÐCPU×î“Ãô¸Ð”µÄÈÎÎñÁÐ±í¡£¸ÃÃüÁî¿ÉÒÔ°´CPUʹÓá£ÄÚ´æʹÓúÍÖ´ÐÐʱ¼ä¶ÔÈÎÎñ½øÐÐÅÅÐò£»¶øÇÒ¸ÃÃüÁîµÄºÜ¶àÌØÐÔ¶¼¿ÉÒÔͨ¹ý½»»¥Ê½ÃüÁî»òÕßÔÚ¸öÈ˶¨ÖÆÎļþÖнøÐÐÉ趨¡£ÔÚºóÃæµÄ½éÉÜÖн«°ÑÃüÁî²ÎÊýºÍ½»»¥ÃüÁî·Ö¿ª½²Êö¡£
ÏÂÃæÊǸÃÃüÁîµÄÓï·¨¸ñʽ£º
top [-] [d delay] [q] [c] [s] [S]
d Ö¸¶¨Ã¿Á½´ÎÆÁÄ»ÐÅϢˢÐÂÖ®¼äµÄʱ¼ä¼ä¸ô¡£µ±È»Óû§¿ÉÒÔʹÓÃs½»»¥ÃüÁîÀ´¸Ä±äÖ®¡£
q ¸ÃÑ¡ÏʹtopûÓÐÈκÎÑӳٵĽøÐÐˢС£Èç¹ûµ÷ÓóÌÐòÓг¬¼¶Óû§È¨ÏÞ£¬ÄÇçÛtop½«ÒÔ¾¡¿ÉÄܸߵÄÓÅÏȼ¶ÔËÐС£
S Ö¸¶¨ÀÛ¼Æģʽ¡£
s ʹtopÃüÁîÔÚ°²È«Ä£Ê½ÖÐÔËÐС£Õ⽫ȥ³ý½»»¥ÃüÁîËù´øÀ´µÄDZÔÚΣÏÕ¡£
i ʹtop²»ÏÔʾÈκÎÏÐÖûòÕß½©ËÀ½ø³Ì¡£
c ÏÔʾÕû¸öÃüÁîÐжø²»Ö»ÊÇÏÔʾÃüÁîÃû
topÃüÁîÏÔʾµÄÏîÄ¿ºÜ¶à£¬Ä¬ÈÏÖµÊÇÿ5Ãë¸üÐÂÒ»´Î£¬µ±È»ÕâÊÇ¿ÉÒÔÉèÖõġ£ÏÔʾµÄ¸÷ÏîĿΪ£º
uptime ¸ÃÏîÏÔʾµÄÊÇϵͳÆô¶¯Ê±¼ä¡¢ÒѾ­ÔËÐеÄʱ¼äºÍÈý¸öƽ¾ù¸ºÔØÖµ£¨×î½ü1Ã룬5Ã룬15ÃëµÄ¸ºÔØÖµ£©¡£
processes
×Ô×î½üÒ»´ÎË¢ÐÂÒÔÀ´µÄÔËÐнø³Ì×ÜÊý¡£µ±È»ÕâЩ½ø³Ì±»·ÖΪÕýÔÚÔËÐеģ¬ÐÝÃߵģ¬Í£Ö¹µÄµÈºÜ¶àÖÖÀà¡£½ø³ÌºÍ״̬ÏÔʾ¿ÉÒÔͨ¹ý½»»¥ÃüÁîtÀ´ÊµÏÖ¡£
CPU states
ÏÔʾÓû§Ä£Ê½£¬ÏµÍ³Ä£Ê½£¬ÓÅÏȼ¶½ø³Ì£¨Ö»ÓÐÓÅÏȼ¶Îª¸ºµÄÁÐÈ뿼ÂÇ£©ºÍÏÐÖõȸ÷ÖÖÇé¿öËùÕ¼ÓÃCPUʱ¼äµÄ°Ù·Ö±È¡£ÓÅÏȼ¶½ø³ÌËùÏûºÄµÄʱ¼äÒ²±»ÁÐÈëµ½Óû§ºÍϵͳµÄʱ¼äÖУ¬ËùÒÔ×ܵİٷֱȽ«´óÓÚ100%¡£Mem ÄÚ´æʹÓÃÇé¿öͳ¼Æ£¬ÆäÖаüÀ¨×ܵĿÉÓÃÄڴ棬¿ÕÏÐÄڴ棬ÒÑÓÃÄڴ棬¹²ÏíÄÚ´æºÍ»º´æËùÕ¼ÄÚ´æµÄÇé¿ö¡£
Swap ½»»»¿Õ¼äͳ¼Æ£¬ÆäÖаüÀ¨×ܵĽ»»»¿Õ¼ä£¬¿ÉÓý»»»¿Õ¼ä£¬ÒÑÓý»»»¿Õ¼ä¡£
PID ÿ¸ö½ø³ÌµÄID¡£
PPID ÿ¸ö½ø³ÌµÄ¸¸½ø³ÌID¡£
UID ÿ¸ö½ø³ÌËùÓÐÕßµÄUID ¡£
USER ÿ¸ö½ø³ÌËùÓÐÕßµÄÓû§Ãû¡£
PRI ÿ¸ö½ø³ÌµÄÓÅÏȼ¶±ð¡£
NI ¸Ã½ø³ÌµÄÓÅÏȼ¶Öµ¡£
SIZE ¸Ã½ø³ÌµÄ´úÂë´óС¼ÓÉÏÊý¾Ý´óСÔÙ¼ÓÉ϶ÑÕ»¿Õ¼ä´óСµÄ×ÜÊý¡£µ¥Î»ÊÇKB¡£
TSIZE ¸Ã½ø³ÌµÄ´úÂë´óС¡£¶ÔÓÚÄں˽ø³ÌÕâÊÇÒ»¸öºÜÆæ¹ÖµÄÖµ¡£
DSIZE Êý¾ÝºÍ¶ÑÕ»µÄ´óС¡£
TRS Îı¾×¤Áô´óС¡£
D ±»±ê¼ÇΪ“²»¸É¾»”µÄÒ³ÏîÄ¿¡£
LIB ʹÓõĿâÒ³µÄ´óС¡£¶ÔÓÚELF½ø³ÌûÓÐ×÷Óá£
RSS ¸Ã½ø³ÌÕ¼ÓõÄÎïÀíÄÚ´æµÄ×ÜÊýÁ¿£¬µ¥Î


Ïà¹ØÎĵµ£º

LINUX ÏÂÅäÖÃÓʼþ·þÎñÆ÷¹ý³Ì£¨Êµ¼ù£©


1¡¢Ê×ÏÈ´ÓÈí¼þ¹ÜÀíÀï°ÑËùÓÐÓйØÓʼþ·þÎñÈí¼þ¶¼×°ÉÏ£¬ÆäÖаüÀ¨ÁË£¬sendmailºÍdovecot
2
¡¢
DN
SÅä
ÖÃ

¡¡¡¡£¨1£©ÐÞ¸Ä/etc/named.conf
£¬´ËÎļþÒ»°ãÊǸöÈíÁ´½Ó£¬Ìí¼ÓÈçÏ£º
zone "excontainer.com" IN {
        type master;
     &nb ......

ÔÚlinuxÏ°²×°Óöµ½µÄ»·¾³±äÁ¿ÎÊÌâ

 ½ñÌìÔÚ°²×°oracle¹ý³ÌÖУ¬²ÎÕÕÍøÉÏÏÂÔصÄ×ÊÁÏÔÚRHEL5ÉÏ°²×°oracle£¬Õû¸ö¹ý³Ì±È½Ï˳Àû£¬µ«ÊÇÈ´Óöµ½ÁËÒ»µãÎÊÌ⣬ËäÈ»²»ÊǺÜÑÏÖØ£¬µ«ÊDZϾ¹ÊǸöÎÊÌâÐÄÀﻹÊDz»ºÜÊæ·þ£¬ÔÚ´ËÇë·¹ýµÄ½â¾ö¡£
      Ö÷ÒªÎÊÌâÊÇoracleÓû§µÄ»·¾³±äÁ¿£¬ÔÚ°²×°oracle¹ý³ÌÖУ¬ÓÐÒ»²½ÊÇÐèÒªÒÔoracleÓû§µÇ¼£¬È»ºó±à¼­ ......

Linux ÏÂʹÓÃÃüÁîÐз¢ËÍÓʼþ×î¼òʵÀý

ÍøÉϵÄÎÄÕ¿ÉÄܹýÓÚÉîÈ룬²»Ì«ÊʺÏÐÂÊÖ¿´£¬ÕâÀï½éÉÜ×î¼òµ¥µÄ¼¸ÌõSMTPÖ¸Á½öÐèÒªÊäÈëºÜÉÙµÄÃüÁî¼´¿É³É¹¦·¢ËÍÒ»·âÓʼþ¡£
ÆäÖдÖÌ岿·ÖΪÊäÈëµÄÃüÁÀ¶É«²¿·ÖΪ¿É±äÄÚÈÝ£¬»ÒɫΪ·þÎñÆ÷Ó¦´ðÄÚÈÝ©¤©¤
[root@localhost ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Esc ......

LinuxÏÂÈçºÎÓÃÓï¾äɱËÀij¸ö³ÌÐòÔËÐеÄËùÓнø³Ì

ÈçºÎÓÃÓï¾äɱËÀËùÓÐoracle´ø(LOCAL=NO)µÄ½ø³Ì£¿
·½·¨Ò»£º(½øÈëoracleÓû§ÏÂ)
$ a=`ps -ef |grep oracle$ORACLE_SID|grep LOCAL=NO |awk '{print $2}'`
»òÕß (È¥³ýµ±Ç°grep½ø³Ì)
$ a=`ps -ef |grep oracle$ORACLE_SID|grep LOCAL=NO |grep -v grep|awk '{print $2}'`
$ echo $a
$ kill -9 $a
·½·¨¶þ£º£¨Ö±½Óɱ£©
$ p ......

Linux ´´½¨Îļþϵͳ¼°¹ÒÔØÎļþϵͳÁ÷³ÌÏê½â

Linux ´´½¨Îļþϵͳ¼°¹ÒÔØÎļþϵͳÁ÷³ÌÏê½â
×÷Õߣº±±ÄÏÄϱ±
À´×Ô£º LinuxSir.Org
ÕªÒª£º±¾ÎĶÔÐÂÔöÓ²ÅÌ£¬ÇиîÓ²ÅÌ£¬´´½¨Ó²ÅÌ·ÖÇø£¬ÎªÓ²ÅÌ·ÖÇø´´½¨Îļþϵͳ£¬ÒÔ¼°¼ÓÔØÎļþϵͳµÄÁ÷³Ì×ö×ܽáÐÔÂÛÊö£»Ö÷ÒªÊÇΪ³õѧÕßŪÇå³þÕâÒ»²Ù×÷¹ý³Ì£»±¾ÎÄ
Éæ¼°fdisk¡¢mkfs¡¢mount ... ... µÈ¹¤¾ß£»¶Ô/etc/fstab ½øÐÐÁ˽â˵£»»¹ÓдÅÅÌɨà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ