LinuxÇéÐÎÏÂÔõÑùÉó²ételnetÀú³ÌÊýÄ¿£¿
ÔÚLinuxÇéÐÎÏ£¬Í¨¹ýÏÂÁîÐпÉÒÔºÜÀû±ãµØÉó²ételnetÀú³ÌµÄÊýÄ¿¡£ÏÂÃ潫ÏÈÈݼ¸ÖÖ³£ÓõÄÒªÁ죺
ʹÓÃpsÏÂÁîÉó²ételnetÀú³ÌÊýÄ¿£º
·¿ªÖնˣ¬ÊäÈëÒÔÏÂÏÂÁ
ps aux | grep telnet | wc -l
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬psÏÂÁîÓÃÓÚÏÔʾĿ½ñϵͳÖеÄÀú³Ì״̬£¬aux²ÎÊýÓÃÓÚÏÔʾËùÓÐÓû§µÄËùÓÐÀú³ÌÐÅÏ¢£¬grepÏÂÁîÓÃÓÚ¹ýÂ˳ö°üÀ¨¡°telnet¡±µÄÀú³Ì£¬wcÏÂÁîÓÃÓÚͳ¼ÆÐÐÊý£¬×îÖÕ»ñµÃtelnetÀú³ÌµÄÊýÄ¿¡£
ʹÓÃpgrepÏÂÁîÉó²ételnetÀú³ÌÊýÄ¿£º
·¿ªÖնˣ¬ÊäÈëÒÔÏÂÏÂÁ
pgrep -c telnet
µÇ¼ºó¸´ÖÆ
pgrepÏÂÁîÓÃÓÚƾ֤Àú³ÌÃû²éÕÒÀú³ÌID£¬-c²ÎÊýÓÃÓÚÏÔʾÇкÏÌõ¼þµÄÀú³ÌÊýÄ¿¡£
ʹÓÃpidofÏÂÁîÉó²ételnetÀú³ÌÊýÄ¿£º
·¿ªÖնˣ¬ÊäÈëÒÔÏÂÏÂÁ
pidof telnet | wc -w
µÇ¼ºó¸´ÖÆ
pidofÏÂÁîÓÃÓÚ²éÕÒÖ¸¶¨Àú³ÌµÄÀú³ÌID£¬wcÏÂÁîÓÃÓÚͳ¼Æµ¥´ÊÊýÄ¿£¨ÕâÀïÓÃÓÚͳ¼ÆtelnetÀú³ÌµÄÊýÄ¿£©¡£
ͨ¹ýÒÔÉÏÒªÁ죬ÎÒÃÇ¿ÉÒÔ¿ìËÙÔÚLinuxÇéÐÎÏÂÉó²ételnetÀú³ÌµÄÊýÄ¿£¬ÓÐÖúÓÚ¶ÔϵͳÔËÐÐÇéÐξÙÐмà¿ØºÍÖÎÀí¡£
ÒÔÉϾÍÊÇLinuxÇéÐÎÏÂÔõÑùÉó²ételnetÀú³ÌÊýÄ¿£¿µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡