LinuxÏÂÓýű¾Ð´¼à¿Ø´úÀí³ÌÐò
LinuxÏÂÓýű¾Ð´¼à¿Ø´úÀí³ÌÐò
Îâ旻
Ì©ÑÒÍøÂ繤×÷ÊÒ
Òò¹¤×÷ÐèÒª£¬ÎÒÐèÒª¼à¿Ø¼¸Ì¨·þÎñÆ÷µÄ³ÌÐò״̬£¬SNMP(¼òµ¥ÍøÂç¹ÜÀíÐÒé)¿ÉÒÔÓ㬵«²¢²»ÄÜÂú×ãÎÒµÄÒªÇ󣬶øÇÒ²¢²»¼òµ¥¡£ÎÒÏ£ÍûʵʱµÃµ½ÖîÈç½ø³ÌµÄÐÅÏ¢¡¢CPUʹÓá¢ÄÚ´æʹÓá¢ÍøÂçÁ÷Á¿¡¢ÍøÂç¶Ë¿Ú¡¢´ÅÅÌÐÅϢʹÓõÈÖÚ¶à²ÎÊý¡£
ÎҺܿìдºÃÁ˼à¿Ø·þÎñ¶ËºÍ¿Í»§¶Ë³ÌÐò£¬µ«¶Ô´úÀí¶Ë³ÌÐòȴһʱÄÑÒÔÈ·¶¨¼¼Êõ·½°¸¡£ÓÃÈκÎÒ»ÖÖÓïÑÔ»ñµÃÕâЩ²ÎÊý¶¼ÐèÒªÉîÈëÁ˽â²Ù×÷ϵͳ£¬ºÃÔÚLinuxÏÂÓзḻµÄÃüÁî³ÌÐò£¬¹À¼Æ¿ÉÒÔ°ïÎÒ¾¡¿ì½â¾öÎÊÌâ¡£
Ò»¡¢¸÷ÖÖÊý¾ÝµÄÊÕ¼¯¡£
Õâ¸öÄѶȲ»Ì«´ó£¬ÒòΪLinuxÏÂÃüÁî·á¸»£¬ËùÒÔ¿ÉÒԺܿì¸ã¶¨¡£±ÈÈ磬ÎÒÏëÖªµÀµ±Ç°ÓÐûÓгÌÐòʹÓÃÍøÂç¶Ë¿Ú8888£¬ÓÃÈçÏÂÃüÁî¼´¿É½â¾ö£º
netstat -ant | grep :8888
»òÕßÀàËÆÎÒÏÂÃæµÄ£¬½«µÃµ½µÄÊý¾Ý¸ü¾ßÌåһЩ£º
netstat -ant | grep 192.168.10.22:8888 | awk '{print $5,$4}'
¶þ¡¢¸ñʽ»¯±£´æ
ÍøÂçÊý¾ÝÒ»°ã¶¼ÊÇÓй̶¨¸ñʽ£¬ÉõÖÁ°üÀ¨Ð£ÑéÖµµÈ¹¦ÄÜ¡£ÎÒµÄÕâ¸öûÄÇô¸´ÔÓ£¬µ«Ò²Í¬ÑùÒªÓаü±êʶ·û¡¢°üÏûÏ¢ID¡¢°üÏûÏ¢Ì峤¶ÈµÈÖµ¡£ÎÒÊÇÕâÑùʵÏֵģº MonitorMsg="\xff\xff\xff\xff" # msg_flag = 0xFFFFFFFF MonitorMsg=$MonitorMsg"\x01\x00\x00\x00" # msg_id = 1
MonitorMsg=$MonitorMsg"\x44\x00\x00\x00" # msg_len = 68 Bytes
ÏûÏ¢ÌåµÄ¾ßÌåÄÚÈݾÍÍêÈ«ÊǸöÐÔ»¯Êý¾ÝÁË£¬±ÈÈ磬ÎÒÏë¼ÓÈ뵱ǰ²Ù×÷ϵͳʱ¼ä£º
timeNow=`date +%H%M%S`
MonitorMsg=$MonitorMsg$timeNow"\x00\x00"
ÒòΪʱ¼äÊÇHH:MM:SS£¬ÎªÁËÄÚ´æ¶ÔÆ룬ºóÃæÓÖ²¹ÁË2×Ö½ÚµÄ0x00¡£
ÔÙÏÂÃæÒª×öµÄ¾ÍÊǽ«ÕâЩÊý¾Ý±£´æµ½ÎļþÖС£echoÃüÁîÍê³ÉÁËÕâÒ»¹¤×÷£º
echo -ne $MonitorMsg >> /usr/montor.dat
ʹÓòÎÊý –ne ÊÇÒòΪĬÈÏÇé¿öÏÂecho»á×Ô¶¯¼ÓÉϻسµ£¬´Ó¶øµ¼ÖÂÊý¾Ý¶Ô²»Æë¡£
Èý¡¢½«±£´æºóµÄÊý¾Ý·¢Ë͵
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
±ê×¼ÐźÅÓëʵʱÐźÅ
0-31 Õâ 32 ¸öÐźųÆΪ±ê×¼Ðźš£
´Ó 32 µ½ 63 Ö®¼äµÄ 32 ¸öÐźųÆΪʵʱÐźš£
¿ÉÒÔͨ¹ý man 7
signal ²é¿´¶Ô“±ê×¼ÐźŔºÍ“ʵʱÐźŔÏêϸµÄÃèÊö¡£
ÐźÅÅŶÓ
ÿ¸ö½ø³ÌÓµÓÐÒ»¸öÐźŵȴý¶ÓÁС£ÔÚ task_struct ÖÐÓÐÒ»¸ö struct sigpending pending Óò£¬
¾ÍÊǽø³ÌµÄÐźŠ......
Linux°²×°JDK²½Öè1. ÏÈ´ÓÍøÉÏÏÂÔØjdk(jdk-1_5_0_02-linux-i586.rpm) £¬ÍƼöSUNµÄ¹Ù·½ÍøÕ¾www.sun.com£¬ÏÂÔغó·ÅÔÚ/homeĿ¼ÖУ¬µ±È»ÆäËüµØ·½Ò²ÐС£
½øÈ밲װĿ¼
#cd /home
#cp jdk-1_5_0_02-linux-i586.rpm /usr/local
#cd /usr/local
¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ
#chmod +x jdk-1_5_0_02-linux-i586.rpm.bin
#./jd ......
ÓÉÓÚ32λ²Ù×÷ϵͳÏÂÃæµ¥½ø³Ì×î´óÄÚ´æʹÓò»Äܳ¬¹ý2G£¬¶øÎÒÃÇÓÃMemcached¾³£ÐèҪʹÓøü´óµÄÄÚ´æ¿Õ¼ä£¬ËùÒÔÑ¡Ôñ64λµÄLinux°æ±¾ÊDZØÐëµÄ£¬64λOSϵÄMemcached°²×°ºÍ32λOSϲ¶à£¬Ö»ÓÐÒ»¸öµØ·½ÉÔÓв»Í¬£¬Ïê¼ûÏÂÃæµÄºìÉ«×ÖÌ岿·Ö¡£
ÎÒÃÇÒÔ°æ±¾memcached-1.2.6ΪÀý£¬¶ÔÓÚÆäËû°æ±¾Ìæ»»ÏàÓ¦°æ±¾ºÅ¼´¿É£»
ÏÂÔصØÖ·£ºhttp://w ......