linuxÔõôÉó²éЧÀÍÆ÷ÉèÖÃ
ÒªÉó²é linux ÖеÄЧÀÍÆ÷ÉèÖ㬿ÉÒÔʹÓÃÒÔÏÂÒªÁ죺Éó²é cpu ÐÅÏ¢£ºlscpuÉó²éÓ²¼þÏêϸÐÅÏ¢£ºlshw -shortÉó²é cpu Îı¾ÐÅÏ¢£ºcat /proc/cpuinfoÉó²éÄÚ´æÐÅÏ¢£ºcat /proc/meminfoÉó²é´ÅÅÌ i/o ͳ¼Æ£ºcat /proc/diskstatsÉó²é²Ù×÷ϵͳÐÅÏ¢£ºuname -aÉó²éÓ²¼þÎı¾ÐÅÏ¢£ºdmidecode -t systemÉó²éЧÀÍ״̬£ºsystemctl status ÁгöÒÑ×°ÖÃÈí¼þ°ü£ºdpkg –
ÔõÑùÔÚ Linux ÖÐÉó²éЧÀÍÆ÷ÉèÖÃ
Linux ϵͳÖÐÓжàÖÖÒªÁì¿ÉÒÔÉó²éЧÀÍÆ÷ÉèÖã¬ÒÔÏÂÊǼ¸ÖÖ³£¼ûµÄÒªÁ죺
1. lscpu ÏÂÁî
´ËÏÂÁî¿ÉÏÔʾÓйØЧÀÍÆ÷ CPU µÄÐÅÏ¢£¬ÈçÄÚºËÃû³Æ¡¢¼Ü¹¹¡¢½¹µãÊý¡¢Ïß³ÌÊýµÈ¡£
lscpu
µÇ¼ºó¸´ÖÆ
2. lshw ÏÂÁî
´ËÏÂÁî¿ÉÏÔʾÓйØÓ²¼þµÄÏêϸÐÅÏ¢£¬°üÀ¨Ö÷°å¡¢PCI ×°±¸¡¢ÄÚ´æ¡¢´æ´¢ºÍÍøÂç×°±¸¡£
lshw -short
µÇ¼ºó¸´ÖÆ
3. cat /proc/cpuinfo
´ËÏÂÁîÏÔʾÓÐ¹Ø CPU µÄÏêϸÎı¾ÐÅÏ¢£¬°üÀ¨»º´æ¾Þϸ¡¢L1/L2/L3 »º´æ¾Þϸ¡¢Ö¸ÁºÍʱÖÓËÙÂÊ¡£
cat /proc/cpuinfo
µÇ¼ºó¸´ÖÆ
4. cat /proc/meminfo
´ËÏÂÁîÏÔʾÓйØÄÚ´æµÄÐÅÏ¢£¬°üÀ¨×ÜÄÚ´æÁ¿¡¢ÒÑÓÃÄÚ´æÁ¿¡¢¿ÉÓÃÄÚ´æÁ¿»ººÍ´æ¾Þϸ¡£
cat /proc/meminfo
µÇ¼ºó¸´ÖÆ
5. cat /proc/diskstats
´ËÏÂÁîÏÔʾÓйØϵͳ´ÅÅÌ I/O ͳ¼ÆÐÅÏ¢£¬ÀýÈçÿÃë¶Áд²Ù×÷Êý¡¢´«Êä×Ö½ÚÊýºÍ´¦Àíʱ¼ä¡£
cat /proc/diskstats
µÇ¼ºó¸´ÖÆ
6. uname -a
´ËÏÂÁîÏÔʾÓйزÙ×÷ϵͳºÍÄں˰汾¡¢Ö÷»úÃûºÍϵͳ½á¹¹µÈÐÅÏ¢¡£
uname -a
µÇ¼ºó¸´ÖÆ
7. dmidecode
´ËÏÂÁîÌṩÓйØϵͳӲ¼þµÄÏêϸÎı¾ÐÅÏ¢£¬°üÀ¨Ö÷°å¡¢BIOS¡¢´¦ÀíÆ÷ºÍ´æ´¢×°±¸¡£
dmidecode -t system
µÇ¼ºó¸´ÖÆ
8. systemctl status
´ËÏÂÁî¿ÉÏÔʾϵͳЧÀ͵Ä״̬ºÍÉèÖÃÐÅÏ¢¡£
systemctl status <service_name></service_name>
µÇ¼ºó¸´ÖÆ
9. dpkg -l
´ËÏÂÁî¿ÉÁгöÒÑ×°ÖõÄÈí¼þ°üÁÐ±í£¬°üÀ¨Ãû³Æ¡¢°æ±¾ºÍ×°ÖÃʱ¼ä¡£
dpkg -l
µÇ¼ºó¸´ÖÆ
ͨ¹ýʹÓÃÕâЩÏÂÁÄú¿ÉÒÔ¿ìËÙÇáËɵØÉó²é Linux ЧÀÍÆ÷µÄÓ²¼þ¡¢Èí¼þºÍϵͳÉèÖÃÐÅÏ¢¡£
ÒÔÉϾÍÊÇlinuxÔõôÉó²éЧÀÍÆ÷ÉèÖõÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡