linuxÉó²éϵͳÐÅÏ¢
linuxÉó²éϵͳÐÅÏ¢µÄÒªÁ죺1¡¢Éó²écpuÐÅÏ¢£¬Ê¹ÓÃlscpuÏÂÁî¿ÉÒÔÏÔʾcpuµÄÏêϸÐÅÏ¢£¬°üÀ¨¼Ü¹¹¡¢Ðͺš¢½¹µãÊý¡¢Ïß³ÌÊýµÈ£¬cat /proc/cpuinfoÏÂÁîÒ²¿ÉÒÔÉó²écpuµÄÏêϸÐÅÏ¢£¬ÒÔ¼°Ã¿¸ö½¹µãµÄÏêϸÉèÖã»2¡¢Éó²éÄÚ´æÐÅÏ¢£¬Ê¹ÓÃfree -hÏÂÁî¿ÉÒÔÉó²éÄÚ´æµÄʹÓÃÇéÐΣ¬°üÀ¨×ÜÄÚ´æ¡¢ÒÑÓÃÄÚ´æ¡¢¿ÕÏÐÄÚ´æµÈ£¬²¢ÒÔÈËÀà¿É¶ÁµÄÃûÌÃÏÔʾµÈµÈ¡£
LinuxÉó²éϵͳÐÅÏ¢ÊÇÒ»¸öº¸ÇÆÕ±éÄÚÈݵĻ°Ì⣬°üÀ¨Ó²¼þÐÅÏ¢¡¢Èí¼þÐÅÏ¢¡¢ÍøÂçÉèÖá¢ÏµÍ³×´Ì¬µÈ¶à¸ö·½Ãæ¡£ÏÂÃ潫ÏêϸÏÈÈÝÔÚLinuxϵͳÖÐÔõÑùÉó²éÖÖÖÖϵͳÐÅÏ¢£¬°üÀ¨Ê¹ÓÃÏÂÁîÐй¤¾ß¡¢ÉèÖÃÎļþÒÔ¼°Í¼ÐνçÃ湤¾ßµÈÒªÁì¡£
Ò»¡¢Ó²¼þÐÅÏ¢Éó²é
1¡¢Éó²éCPUÐÅÏ¢
ʹÓÃlscpuÏÂÁî¿ÉÒÔÏÔʾCPUµÄÏêϸÐÅÏ¢£¬°üÀ¨¼Ü¹¹¡¢Ðͺš¢½¹µãÊý¡¢Ïß³ÌÊýµÈ¡£
cat /proc/cpuinfoÏÂÁîÒ²¿ÉÒÔÉó²éCPUµÄÏêϸÐÅÏ¢£¬ÒÔ¼°Ã¿¸ö½¹µãµÄÏêϸÉèÖá£
2¡¢Éó²éÄÚ´æÐÅÏ¢
ʹÓÃfree -hÏÂÁî¿ÉÒÔÉó²éÄÚ´æµÄʹÓÃÇéÐΣ¬°üÀ¨×ÜÄÚ´æ¡¢ÒÑÓÃÄÚ´æ¡¢¿ÕÏÐÄÚ´æµÈ£¬²¢ÒÔÈËÀà¿É¶ÁµÄÃûÌã¨ÈçG¡¢M£©ÏÔʾ¡£
cat /proc/meminfoÏÂÁî¿ÉÒÔÏÔʾ¸üÏêϸµÄÄÚ´æÐÅÏ¢¡£
3¡¢Éó²éÓ²ÅÌÐÅÏ¢
ʹÓÃdf -hÏÂÁî¿ÉÒÔÉó²é¸÷Ó²ÅÌ·ÖÇøµÄʹÓÃÇéÐΡ£
lsblkÏÂÁî¿ÉÒÔÁгöËùÓпÉÓõĿé×°±¸µÄÐÅÏ¢£¬°üÀ¨Ó²ÅÌ¡¢·ÖÇøµÈ¡£
fdisk -lÏÂÁî¿ÉÒÔÉó²éÓ²Å̵ķÖÇø±íÐÅÏ¢¡£
4¡¢Éó²éÍø¿¨ÐÅÏ¢
ʹÓÃifconfig»òip addrÏÂÁî¿ÉÒÔÉó²éÍø¿¨µÄÉèÖÃÐÅÏ¢£¬°üÀ¨IPµØµã¡¢×ÓÍøÑÚÂë¡¢MACµØµãµÈ¡£
lshw -class networkÏÂÁî¿ÉÒÔÏÔʾ¸üÏêϸµÄÍø¿¨Ó²¼þÐÅÏ¢¡£
¶þ¡¢Èí¼þÐÅÏ¢Éó²é
1¡¢Éó²é²Ù×÷ϵͳÐÅÏ¢
ʹÓÃuname -aÏÂÁî¿ÉÒÔÉó²é²Ù×÷ϵͳµÄÄں˰汾¡¢Ö÷»úÃûµÈÐÅÏ¢¡£
cat /etc/os-release»òcat /etc/*release*ÏÂÁî¿ÉÒÔÏÔʾ²Ù×÷ϵͳµÄ¿¯ÐаæÐÅÏ¢¡£
2¡¢Éó²éÒÑ×°ÖõÄÈí¼þ°ü
¹ØÓÚʹÓÃRPM°ü¹ÜÀíÆ÷µÄϵͳ£¨ÈçCentOS¡¢Fedora£©£¬¿ÉÒÔʹÓÃrpm -qaÏÂÁîÁгöËùÓÐÒÑ×°ÖõÄÈí¼þ°ü¡£
¹ØÓÚʹÓÃDebian°ü¹ÜÀíÆ÷µÄϵͳ£¨ÈçUbuntu£©£¬¿ÉÒÔʹÓÃdpkg -lÏÂÁîÁгöÒÑ×°ÖõÄÈí¼þ°ü¡£
3¡¢Éó²éÕýÔÚÔËÐеÄÀú³Ì
ʹÓÃpsÏÂÁî¿ÉÒÔÉó²éÄ¿½ñÕýÔÚÔËÐеÄÀú³ÌÐÅÏ¢£¬ÍŽágrepÏÂÁî¿ÉÒÔ¹ýÂ˳öÌض¨Àú³ÌµÄÐÅÏ¢¡£
top»òhtopÏÂÁî¿ÉÒÔʵʱÏÔʾϵͳÖи÷¸öÀú³ÌµÄ×ÊÔ´Õ¼ÓÃÇéÐΡ£
Èý¡¢ÏµÍ³×´Ì¬Éó²é
1¡¢Éó²éϵͳ¸ºÔØ
ʹÓÃuptimeÏÂÁî¿ÉÒÔÉó²éϵͳµÄÔËÐÐʱ¼ä¡¢Óû§ÊýÒÔ¼°Æ½¾ù¸ºÔØ¡£
wÏÂÁîÒ²¿ÉÒÔÏÔʾÀàËƵÄÐÅÏ¢£¬²¢ÁгöÄ¿½ñµÇ¼µÄÓû§¼°ÆäÔ˶¯¡£
2¡¢Éó²éϵͳÈÕÖ¾
LinuxϵͳµÄÈÕ־ͨ³£ÉúÑÄÔÚ/var/logĿ¼Ï£¬¿ÉÒÔʹÓÃcat¡¢tail¡¢lessµÈÏÂÁîÉó²éÕâЩÈÕÖ¾Îļþ¡£
journalctlÏÂÁî¿ÉÒÔÉó²ésystemdÈÕÖ¾£¬¹ØÓÚʹÓÃsystemdµÄϵͳºÜÊÇÓÐÓá£
3¡¢Éó²éÍøÂç״̬
ʹÓÃnetstatÏÂÁî¿ÉÒÔÉó²éÍøÂçÅþÁ¬¡¢Â·ÓÉ±í¡¢½Ó¿Úͳ¼ÆµÈÐÅÏ¢¡£
ssÏÂÁîÊÇnetstatµÄÌ滻Ʒ£¬¹¦Ð§ÀàËƵ«ÐÔÄܸüºÃ¡£
nload»òiftopÏÂÁî¿ÉÒÔʵʱÏÔʾÍøÂç½Ó¿ÚµÄÁ÷Á¿ÇéÐΡ£
ËÄ¡¢Í¼ÐνçÃ湤¾ß
³ýÁËÏÂÁîÐй¤¾ßÍ⣬Linux»¹ÌṩÁËһЩͼÐνçÃ湤¾ßÀ´Éó²éϵͳÐÅÏ¢£¬ÕâЩ¹¤¾ßͨ³£Ô½·¢Ö±¹ÛÒ×Óá£
1¡¢GNOME System Monitor
¹ØÓÚʹÓÃGNOME×ÀÃæµÄLinux¿¯Ðа棬GNOME System MonitorÊÇÒ»¸öÄÚÖõÄϵͳ¼à¿Ø¹¤¾ß£¬¿ÉÒÔÏÔʾCPU¡¢ÄÚ´æ¡¢ÍøÂçµÈ×ÊÔ´µÄʹÓÃÇéÐΡ£
2¡¢KDE System Guard
¹ØÓÚʹÓÃKDE×ÀÃæµÄLinux¿¯Ðа棬KDE System GuardÌṩÁËÀàËƵÄϵͳ¼à¿Ø¹¦Ð§¡£
3¡¢HardInfo
HardInfoÊÇÒ»¸ö¹¦Ð§Ç¿Ê¢µÄϵͳÐÅÏ¢Éó²é¹¤¾ß£¬¿ÉÒÔÏÔʾӲ¼þµÄÏêϸÐÅÏ¢¡¢ÐÔÄܲâÊÔЧ¹ûµÈ¡£
Îå¡¢×¢ÖØÊÂÏî
ÔÚÉó²éϵͳÐÅϢʱ£¬ÐèҪעÖØÒÔϼ¸µã£º
1¡¢È¨ÏÞÎÊÌ⣺ijЩϵͳÐÅÏ¢»òÉèÖÃÎļþ¿ÉÄÜÐèÒªÌض¨µÄȨÏ޲ŻªÉó²é»òÐ޸ģ¬ÈçrootȨÏÞ¡£ÔÚʹÓÃÏà¹ØÏÂÁî»ò¹¤¾ßʱ£¬ÇëÈ·±£¾ßÓÐ×ã¹»µÄȨÏÞ¡£
2¡¢ÏÂÁî²ÎÊý£º´ó´ó¶¼ÏÂÁ֧³Ö¶àÖÖ²ÎÊýºÍÑ¡Ï¿ÉÒÔͨ¹ýÉó²éÏÂÁîµÄÊÖÊéÒ³£¨Ê¹ÓÃmanÏÂÁÀ´Ïàʶ¸ü¶àÏêϸÐÅÏ¢¡£
3¡¢¶à¿¯Ðаæ²î±ð£º²î±ðµÄLinux¿¯Ðаæ¿ÉÄÜÔÚÏÂÁî¡¢ÉèÖÃÎļþµÈ·½Ãæ±£´æ²î±ð£¬Òò´ËÔÚÏÖʵ²Ù×÷ÖÐÐèҪƾ֤ËùʹÓõĿ¯Ðаæ¾ÙÐе÷½â¡£
×ÜÖ®£¬LinuxÌṩÁ˸»ºñµÄ¹¤¾ßºÍÒªÁìÀ´Éó²éϵͳÐÅÏ¢£¬Í¨¹ýÍŽáÏÂÁîÐй¤¾ßºÍͼÐνçÃ湤¾ß£¬¿ÉÒÔÀû±ãµØ»ñÈ¡ËùÐèµÄϵͳÐÅÏ¢²¢¾ÙÐÐÏìÓ¦µÄÖÎÀíºÍÓÅ»¯¡£
ÒÔÉϾÍÊÇlinuxÉó²éϵͳÐÅÏ¢µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡