dmidecode # 查看全面硬件信息dmidecode | grep "Product Name" # 查看服务器型号dmidecode | grep -P -A5 "Memorys+Device" | grep Size | grep -v Range # 查看内存插槽