ÔõÑùÔÚLinuxÖпìËÙÈ·¶¨telnetÀú³ÌµÄÊýÄ¿£¿
ÔÚLinux²Ù×÷ϵͳÖУ¬TelnetÊÇÒ»ÖÖÓÃÓÚÔ¶³ÌÉÏ°¶µ½ÆäËûÅÌËã»úµÄÐÒ飬ͨ³£ÓÃTelnet¹¤¾ß¾ÙÐÐÔ¶³ÌÉÏ°¶¡£ÓÐʱ¼äÎÒÃÇ¿ÉÄÜÐèÒª¿ìËÙÈ·¶¨Ä¿½ñϵͳÉÏTelnetÀú³ÌµÄÊýÄ¿£¬ÒÔ±ã¾ÙÐÐÐÔÄܼà¿Ø»òÕß¹ÊÕÏÅŲ顣ÏÂÃ潫ÏÈÈÝÒ»ÖÖͨ¹ýÏÂÁîÐÐÔÚLinuxÖпìËÙÈ·¶¨TelnetÀú³ÌÊýÄ¿µÄÒªÁ죬²¢¸½ÉÏÏêϸµÄ´úÂëʾÀý¡£
°ì·¨
·¿ªÖնˣ¬²¢ÊäÈëÒÔÏÂÏÂÁîÉó²éÄ¿½ñϵͳÖÐËùÓеÄTelnetÀú³ÌÊýÄ¿£º
ps aux | grep telnet | grep -v grep | wc -l
µÇ¼ºó¸´ÖÆ
ÊäÈëÍêÉÏÊöÏÂÁîºó£¬ÏµÍ³½«»á·µ»ØÒ»¸öÊý×Ö£¬¸ÃÊý×Ö¼´ÎªÄ¿½ñϵͳÖÐTelnetÀú³ÌµÄÊýÄ¿¡£
´úÂëʾÀýÚ¹ÊÍ
ps aux£ºÓÃÓÚÏÔʾĿ½ñϵͳÖÐËùÓÐÀú³ÌµÄÏêϸÐÅÏ¢¡£
grep telnet£º¹ýÂ˳ö°üÀ¨¡°telnet¡±Òªº¦´ÊµÄÀú³ÌÐÅÏ¢¡£
grep -v grep£ºÈ¥µôÆäÖаüÀ¨¡°grep¡±Òªº¦´ÊµÄÐУ¬ÒÔ×èÖ¹½«grepÀú³ÌÒ²ËãÔÚÄÚ¡£
wc -l£ºÍ³¼Æ¾ÓÉÉÏÊö¹ýÂ˺óµÄÐÐÊý£¬¼´ÎªTelnetÀú³ÌµÄÊýÄ¿¡£
×¢ÖØÊÂÏî
TelnetÒѾÖð½¥±»SSHËùÈ¡´ú£¬Ê¹ÓÃTelnet±£´æÇå¾²ÎÊÌ⣬½¨ÒéÖ»¹ÜÉÙÓÃTelnet¾ÙÐÐÔ¶³ÌµÇ¼¡£
È·ÈÏTelnetÀú³ÌÊýĿʱ£¬ÒªÈ·±£Ã»ÓÐÆäËûÓëTelnetÒªº¦´ÊÓйصÄÀú³Ì±»Í³¼Æ½øÀ´¡£
ͨ¹ýÒÔÉÏÒªÁ죬Äú¿ÉÒÔ¿ìËÙÔÚLinuxÖÐÈ·¶¨TelnetÀú³ÌÊýÄ¿£¬²¢Æ¾Ö¤ÏÖÕæÏàÐξÙÐÐÐëÒªµÄ´¦ÀíºÍµ÷ÓÅ¡£Ï£ÍûÒÔÉÏÄÚÈݶÔÄúÓÐËù×ÊÖú¡£
ÒÔÉϾÍÊÇÔõÑùÔÚLinuxÖпìËÙÈ·¶¨telnetÀú³ÌµÄÊýÄ¿£¿µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡