方法:
1。查CPU
[root@localhost ~]# grep "model name" /proc/cpuinfo
model name : Intel(R) Xeon(R) CPU 5110 @ 1.60GHz
model name : Intel(R) Xeon(R) CPU 5110 @ 1.60GHz
model name : Intel(R) Xeon(R) CPU 5110 @ 1.60GHz
model name : Intel(R) Xeon(R) CPU 5110 @ 1.60GHz
这表示是双至强CPU,写成:Xeon1.6*2就OK了
2。查内存大小
[root@localhost ~]# free -m
total used free shared buffers cached
Mem: 3995 3971 24 0 181 3111
-/+ buffers/cache: 678 3317
Swap: 4095 0 4095
3。查硬盘
df -h看Size项就OK了
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p2 15G 2.5G 12G 18% /
/dev/cciss/c0d0p1 193M 15M 169M 9% /boot
none 2.0G 0 2.0G 0% /dev/shm
/dev/cciss/c0d0p5 251G 104G 135G 44% /var/eyou
加起来就成了