尊龙凯时人生就是博

LinuxÏÂÁÉó²ételnetÀú³ÌÊýÄ¿µÄÒªÁì

LinuxÏÂÁîÊÇϵͳÖÎÀíÔ±Ò»Ñùƽ³£ÊÂÇéÖбز»¿ÉÉٵŤ¾ßÖ®Ò» £¬ËüÃÇ¿ÉÒÔ×ÊÖúÎÒÃÇÍê³ÉÖÖÖÖϵͳÖÎÀíʹÃü¡£ÔÚÔËάÊÂÇéÖÐ £¬ÓÐʱ¼äÐèÒªÉó²éϵͳÖÐij¸öÀú³ÌµÄÊýÄ¿ÒÔ±ãʵʱ·¢Ã÷ÎÊÌâºÍ¾ÙÐе÷ÓÅ¡£±¾ÎĽ«ÏÈÈÝÔõÑùʹÓÃLinuxÏÂÁîÉó²ételnetÀú³ÌµÄÊýÄ¿ £¬ÈÃÎÒÃÇÒ»ÆðÀ´Ñ§Ï°°É¡£

ÔÚLinuxϵͳÖÐ £¬ÎÒÃÇ¿ÉÒÔʹÓÃpsÏÂÁîÍŽágrepÏÂÁîÀ´Éó²ételnetÀú³ÌµÄÊýÄ¿¡£Ê×ÏÈ £¬ÎÒÃÇÐèÒª·­¿ªÖÕ¶Ë £¬ÊäÈëÒÔÏÂÏÂÁ

ps -ef | grep telnet | grep -v grep | wc -l

µÇ¼ºó¸´ÖÆ

ÏÂÃæÊǶÔÉÏÊöÏÂÁîµÄÚ¹ÊÍ£º

ps -ef£ºÁгöϵͳÖÐËùÓÐÀú³ÌµÄÐÅÏ¢£»

grep telnet£º¹ýÂ˳ö°üÀ¨¡°telnet¡±Òªº¦×ÖµÄÀú³ÌÐÅÏ¢£»

grep -v grep£ºÉ¨³ýµôgrepÏÂÁî×Ô¼º±¬·¢µÄÀú³ÌÐÅÏ¢ £¬×èÖ¹ÔÚ¼ÆÊýʱ·ºÆð¹ýʧ£»

wc -l£ºÍ³¼ÆÇкÏÌõ¼þµÄÀú³ÌÊýÄ¿¡£

ͨ¹ýÖ´ÐÐÒÔÉÏÏÂÁî £¬¼´¿ÉÉó²éÄ¿½ñϵͳÖÐtelnetÀú³ÌµÄÊýÄ¿¡£

ÁíÍâ £¬ÎÒÃÇ»¹¿ÉÒÔʹÓÃpgrepÏÂÁîÀ´²éÕÒÌض¨Àú³ÌµÄPID£¨Àú³ÌID£© £¬È»ºóÔÙͳ¼ÆÊýÄ¿¡£Ê¾Àý´úÂëÈçÏ£º

pgrep -c telnet

µÇ¼ºó¸´ÖÆ

ÉÏÊöÏÂÁîÖÐ £¬-cÑ¡ÏîÌåÏÖÖ»ÏÔʾÇкÏÌõ¼þµÄÀú³ÌÊýÄ¿¡£

³ýÁËÒÔÉÏÏÈÈݵÄÒªÁì £¬»¹¿ÉÒÔÍŽáÆäËûLinuxÏÂÁî £¬Èçps aux¡¢awkµÈ £¬À´ÊµÏÖÉó²ételnetÀú³ÌÊýÄ¿µÄ¹¦Ð§¡£

×ÜÖ® £¬ÊìÁ·ÕÆÎÕLinuxÏÂÁî¹ØÓÚϵͳÖÎÀíÔ±À´ËµÊǺÜÊÇÖ÷ÒªµÄ¡£Í¨¹ý±¾ÎÄÏÈÈݵÄÒªÁì £¬Ï£ÍûÄÜ×ÊÖú¸÷ÈËÔ½·¢Àû±ãµØÉó²ételnetÀú³ÌµÄÊýÄ¿ £¬Ìá¸ßϵͳÖÎÀíЧÂÊ¡£ÈôÊÇÏëÒªÏàʶ¸ü¶àLinuxÏÂÁîµÄÓ÷¨ £¬¿ÉÒÔ²éÔÄÏà¹ØÎĵµ»òÕß¼ÓÈëÏà¹ØÅàѵ¿Î³Ì¡£Ô¸¸÷ÈËÔÚÊÂÇéÖж¼ÄÜ˳Ëì¸ßЧµØÍê³É¸÷ÏîʹÃü£¡

ÒÔÉϾÍÊÇLinuxÏÂÁÉó²ételnetÀú³ÌÊýÄ¿µÄÒªÁìµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是博ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是博ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是博

13452372176

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ