ÓÃÈí¼þlm_sensors¼à²âLinuxϵͳºÍCPUζÈ
ÔÚLinuxÏÂÓиö½Ðlm_sensorsµÄÈí¼þ¿ÉÒÔ°ïÖúÎÒÃÇÀ´¼à¿ØÖ÷°å£¬CPUµÄ¹¤×÷µçѹ£¬·çÉÈתËÙ¡¢Î¶ȵÈÊý¾Ý¡£ÕâЩÊý¾ÝÎÒÃÇͨ³£ÔÚÖ÷°åµÄ
BIOSÒ²¿ÉÒÔ¿´µ½¡£µ±ÎÒÃÇ¿ÉÒÔÔÚ»úÆ÷ÔËÐеÄʱºòͨ¹ýlm_sensorsËæÊ±À´¼à²â×ÅCPUµÄζȱ仯£¬¿ÉÒÔÔ¤·ÀºÇ±£»¤ÒòΪCPU¹ýÈȶø»áÉÕµô¡£
1. °²×°lm_sensors
ÏÖÔÚ»ù±¾ÉÏÿ¸öLinux¶¼ÒѾÓÐlm_sensors°üÁË£¬ÎÒÃÇÖ÷Òª°²×°Á˾ͿÉÒÔÁË¡£»òÕßÎÒÃÇÒ²¿ÉÒÔͨ¹ýÔ´ÎļþÀ´×Ô¼º±àÒë¡£
1£©ÔÚFC£¬RH£¬ CENTOSÏ£¬ÓÃrpm£º
[root@securitycn ~]# rpm -ivh lm_sensors-2.10.0-3.1.i386.rpm
3£©±àÒëÔ´Îļþ°²×°
ÎÒÃÇ¿ÉÒÔͨ¹ý£ºÕâÀïÏÂÔØ
Ô´Îļþ
ÕâÀïÎÒÃÇҪעÒâµÄÎÊÌâÊÇÒªÏȰ²×°libsysfs¿â£¬ÊÇSysfsutils£¬Sysfsutils£develÈí¼þ
tar xzvf lm-sensors-xxx.tar.gz
make user
make user_install testing
ÏÂÃæÎÒÃǾÍÓÃһЩ¼òµ¥µÄÃüÁîÀ´ÀûÓÃlm_sensorsÀ´µÃµ½CPUµÄÊý¾Ý¡£ÎÒÃÇÒªÓÃrootµÄÉí·ÝÀ´£º
sensors-detect£¬È»ºóËü»á×Ô¶¯ËÑË÷Ö÷°åÉϵÄchipsetºÍÏàÓ¦µÄdriver£¬ÎÒÃÇÈ«²¿´ðYES¾Í¿ÉÒÔÁË
[root@securitycn ~]# sensors-detect
# sensors-detect revision 1.413 £¨2006/01/19 20£º28£º00£©
This program will help you determine which I2C/SMBus modules you need to
load to use lm_sensors most effectively. You need to have i2c and
lm_sensors installed before running this program.
Also£¬ you need to be `root'£¬ or at least have access to the /dev/i2c-*
files£¬ for most things.
If you have patched your kernel and have some drivers built in£¬ you can
safely answer NO if asked to load some modules. In this case£¬ things may
seem a bit confusing£¬ but they will still work.
It is generally safe and recommended to accept the default answers to all
questions£¬ unless you know what you're doing.
We can start with probing for £¨PCI£© I2C or SMBus adapters.
You do not need any special privileges for this.
Do you want to probe now£¿ £¨YES/no£©£º
È«²¿Ä¬ÈÏYES¼´¿É¡£
È»ºóÎÒÃÇÆô¶¯lm_sensors £º
/etc/init.d/lm_sensors start
Starting lm_sensors£º [ OK ]
ÎÒÃÇ¿ÉÒÔͨ¹ýlsmodÀ´È·¶¨ÎÒÃÇÐèÒªµÄdriverÒѾ¼ÓÔØÁËûÓÐ
lsmod | grep i2c
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
ת×Ô£ºhttp://www.vimer.cn
Linux½ø³Ì¹ÜÀíÃüÁîÏê½â(psºÍtop)
1.psÃüÁî
×÷ÓãºpsÃüÁîÖ÷Òª²é¿´ÏµÍ³Öнø³ÌµÄ״̬¡£
¸ñʽ£ºps [Ñ¡Ïî]
Ö÷ҪѡÏîÈçÏ¡£
-A£ºÏÔʾϵͳÖÐËùÓнø³ÌµÄÐÅÏ¢¡£
-e£ºÏÔʾËùÓнø³ÌµÄÐÅÏ¢¡£
-f£ºÏÔʾ½ø³ÌµÄËùÓÐÐÅÏ¢¡£
-l£ºÒÔ³¤¸ñʽÏÔʾ½ø³ÌÐÅÏ¢¡£
-r£ºÖ»ÏÔʾÕýÔÚÔËÐеĽø³Ì¡£
-u£ºÏÔÊ¾ÃæÏòÓû§µÄ ......
Ò»Ö±ÔÚ¹Ø×¢´óÐÍÎļþ´æ´¢ÏµÍ³µÄ×îнü¿ö£¬½üÈÕÓÖµÃÖªÒ»¸öÖØ°õÏûÏ¢£ºLinux kernel ×Ô 2.6.28 ¿ªÊ¼Õýʽ֧³ÖеÄÎļþϵͳ Ext4¡£ÕæÊÇÆÚ´ýÒѾÃÁ˰¡~Ext4 ÊÇ Ext3 µÄ¸Ä½ø°æ£¬ÐÞ¸ÄÁË Ext3 Öв¿·ÖÖØÒªµÄÊý¾Ý½á¹¹£¬¶ø²»½ö½öÏñ Ext3 ¶Ô Ext2 ÄÇÑù£¬Ö»ÊÇÔö¼ÓÁËÒ»¸öÈÕÖ¾¹¦ÄܶøÒÑ¡£Ext4 ¿ÉÒÔÌṩ¸ü¼ÑµÄÐÔÄܺͿɿ¿ÐÔ£¬»¹ÓиüΪ·á¸»µÄ¹¦ÄÜ£ ......
1. man ¶ÔÄãÊìϤ»ò²»ÊìϤµÄÃüÁîÌṩ°ïÖú½âÊÍ eg:man ls ¾Í¿ÉÒԲ鿴lsÏà¹ØµÄÓ÷¨ ×¢£º°´q¼ü»òÕßctrl+cÍ˳ö£¬ÔÚlinuxÏ¿ÉÒÔʹÓÃctrl+cÖÕÖ¹µ±Ç°³ÌÐòÔËÐС£ 2. ls ²é¿´Ä¿Â¼»òÕßÎļþµÄÊô*£¬ÁоٳöÈÎһĿ¼ÏÂÃæµÄÎļþ eg: ls /usr/man ls -l a.d±íʾĿ¼(directory)£¬Èç¹ûÊÇÒ»¸ö"-"±íʾÊÇÎļþ£¬Èç¹ûÊÇlÔò±íʾ ......