Linux³£ÓÃÍøÂçÃüÁî
# ifconfig # ²é¿´ËùÓÐÍøÂç½Ó¿ÚµÄÊôÐÔ
# iptables -L # ²é¿´·À»ðǽÉèÖÃ
# route -n # ²é¿´Â·Óɱí
# netstat -lntp # ²é¿´ËùÓмàÌý¶Ë¿Ú
# netstat -antp # ²é¿´ËùÓÐÒѾ½¨Á¢µÄÁ¬½Ó
# netstat -s # ²é¿´ÍøÂçͳ¼ÆÐÅÏ¢½ø³Ì
chkconfig --list #²é¿´ËùÓÐϵͳ·þÎñÁбí
traceroute tracert #²é¿´Â·ÓÉ·¾¶
NetstatµÄһЩ³£ÓÃÑ¡Ïî
netstat -s——±¾Ñ¡ÏîÄܹ»°´ÕÕ¸÷¸öÐÒé·Ö±ðÏÔʾÆäͳ¼ÆÊý¾Ý¡£Èç¹ûÄãµÄÓ¦ÓóÌÐò£¨ÈçWebä¯ÀÀÆ÷£©ÔËÐÐËٶȱȽÏÂý£¬»òÕß²»ÄÜÏÔʾWebÒ³Ö®ÀàµÄÊý¾Ý£¬ÄÇôÄã¾Í¿ÉÒÔÓñ¾Ñ¡ÏîÀ´²é¿´Ò»ÏÂËùÏÔʾµÄÐÅÏ¢¡£ÄãÐèÒª×Ðϸ²é¿´Í³¼ÆÊý¾ÝµÄ¸÷ÐУ¬ÕÒµ½³ö´íµÄ¹Ø¼ü×Ö£¬½ø¶øÈ·¶¨ÎÊÌâËùÔÚ¡£
netstat -e——±¾Ñ¡ÏîÓÃÓÚÏÔʾ¹ØÓÚÒÔÌ«ÍøµÄͳ¼ÆÊý¾Ý¡£ËüÁгöµÄÏîÄ¿°üÀ¨´«Ë͵ÄÊý¾Ý±¨µÄ×Ü×Ö½ÚÊý¡¢´íÎóÊý¡¢É¾³ýÊý¡¢Êý¾Ý±¨µÄÊýÁ¿ºÍ¹ã²¥µÄÊýÁ¿¡£ÕâЩͳ¼ÆÊý¾Ý¼ÈÓз¢Ë͵ÄÊý¾Ý±¨ÊýÁ¿£¬Ò²ÓнÓÊÕµÄÊý¾Ý±¨ÊýÁ¿¡£Õâ¸öÑ¡Ïî¿ÉÒÔÓÃÀ´Í³¼ÆһЩ»ù±¾µÄÍøÂçÁ÷Á¿¡£
netstat -r——±¾Ñ¡Ïî¿ÉÒÔÏÔʾ¹ØÓÚ·ÓɱíµÄÐÅÏ¢£¬ÀàËÆÓÚºóÃæËù½²Ê¹ÓÃroute printÃüÁîʱ¿´µ½µÄ ÐÅÏ¢¡£³ýÁËÏÔʾÓÐЧ·ÓÉÍ⣬»¹ÏÔʾµ±Ç°ÓÐЧµÄÁ¬½Ó¡£
netstat -a——±¾Ñ¡ÏîÏÔʾһ¸öËùÓеÄÓÐЧÁ¬½ÓÐÅÏ¢ÁÐ±í£¬°üÀ¨Òѽ¨Á¢µÄÁ¬½Ó£¨ESTABLISHED£©£¬Ò²°üÀ¨¼àÌýÁ¬½ÓÇëÇó£¨LISTENING£©µÄÄÇЩÁ¬½Ó£¬¶Ï¿ªÁ¬½Ó£¨CLOSE_WAIT£©»òÕß´¦ÓÚÁª»úµÈ´ý״̬µÄ£¨TIME_WAIT£©µÈ
netstat -n——ÏÔʾËùÓÐÒѽ¨Á¢µÄÓÐЧÁ¬½Ó¡£
1¡¢È·¶¨ÄãµÄtelnet·þÎñ´ò¿ªÃ»ÓУº
[root@111 ~]# chkconfig --list|grep telnet
ekrb5-telnet: off
krb5-telnet: off
[root@111 ~]#
×¢Òâ¼ì²é½á¹ûÕâÀïÊǹرÕ״̬
2¡¢´ò¿ªtelnet·þÎñ£º
[root@111 ~]# chkconfig krb5-telnet on
[root@111 ~]# chkconfig --list|grep telnet
ekrb5-telnet: offv
krb5-telnet: on
[root@111 ~]#
¼ì²éÒѾ±»´ò¿ªÁË
3¡¢Ð޸ĵǽÎļþsecuretty,
Ïà¹ØÎĵµ£º
http://blog.chinaunix.net/u2/62910/showart_1090856.html
Linux »ã±àÓïÑÔ¿ª·¢Ö¸ÄÏ
»ã±àÓïÑÔµÄÓŵãÊÇËٶȿ죬¿ÉÒÔÖ±½Ó¶ÔÓ²¼þ½øÐвÙ×÷£¬Õâ¶ÔÖîÈçͼÐδ¦ÀíµÈ¹Ø¼üÓ¦ÓÃÊǷdz£ÖØÒªµÄ¡£Linux ÊÇÒ»¸öÓà C ÓïÑÔ¿ª·¢µÄ²Ù×÷ϵͳ£¬ÕâʹµÃºÜ¶à³ÌÐòÔ±¿ªÊ¼Íü¼ÇÔÚ Linux Öл¹¿ÉÒÔÖ±½ÓʹÓûã±àÕâÒ»µ×²ãÓïÑÔÀ´ÓÅ»¯³ÌÐòµÄÐÔÄÜ¡£±¾ÎÄΪÄÇÐ©Ô ......
ÔÚѧϰÓйØI/O×ÜÏßµÄÄÚÈÝʱ£¬×îºÃÏÈ¿´¿´Ïà¹ØµÄ֪ʶ£º´ÓPC×ÜÏßµ½ARMµÄÄÚ²¿×ÜÏß
I/O ¶Ë¿ÚºÍ I/O ÄÚ´æ
ÿÖÖÍâÉ趼ÊÇͨ¹ý¶Áд¼Ä´æÆ÷À´½øÐпØÖÆ¡£
ÔÚÓ²¼þ²ã£¬ÄÚ´æÇøºÍ I/O ÇøÓòûÓиÅÄîÉϵÄÇø±ð: ËüÃǶ¼ÊÇͨ¹ýÏòÔÚµØÖ·×ÜÏߺͿØÖÆ×ÜÏß·¢³öµçƽÐźÅÀ´½øÐзÃÎÊ£¬ÔÙͨ¹ýÊý¾Ý×ÜÏ߶ÁдÊý¾Ý¡£
ÒòΪÍâÉèÒªÓëI\O×ÜÏßÆ¥Å䣬¶ø´ó²¿·ÖÁ ......
Ì«ÀõÄÔÒòÓÐÒÔÏÂ4Ìõ£º
£±¡¢ÔÚWINDOWS SERVER 2008 SP2ÉϾͰ²×°¹ýubuntu 9.04£¬°²×°Ê±ÏÔʾËÙ¶ÈÆæÂý£¬¼òµ¥ÎÞ·¨ÈÌÊÜ£¬Îı¾Ä£Ê½£¬Ò»ÐÐÒ»ÐÐË¢£¬ÈÃÎÒÏëÆðµ±ÄêÔÚ£²£¸£¶ÉÏʹÓÃEGAÏÔ¿¨µÄÒ£Ô¶¹ýÈ¥£»
£²¡¢ÔÚWINDOWS SERVER 2008 R2ÉÏ°²×°ubutun 10.04£¬Çé¿öÒ»¸öÑù£¬ÔÙҲûÓÐÓÂÆø°²×°½øÐÐÏÂÈ¥£»
£³¡¢ÔÚWINDOWS SERVER 2008 SP2ÉϾͰ ......
ÔÎĵØÖ·£ºhttp://blog.sina.com.cn/s/blog_460b9cbf0100gxtv.html
ҪʹÓÃÐźÅÁ¿£¬Äں˴úÂë±ØÐë°üÀ¨<asm/semaphore.h>¡£Ïà¹ØµÄÀàÐÍÊÇstruct semaphore£»Êµ¼ÊµÄÐźÅÁ¿¿Éͨ¹ý¼¸ÖÖ;¾¶À´ÉùÃ÷ºÍ³õʼ»¯¡£ÆäÖÐÖ®Ò»ÊÇÖ±½Ó´´½¨ÐźÅÁ¿£¬Õâͨ¹ýsema_initÍê³É£º
viod sema_init(struct semaphore *sem,int val);
ÆäÖÐvalÊǸ³Ó ......