# 查看操作系统发行版信息 cat /etc/redhat-release # 查看系统详细信息 lsb_release -a # 查看cpu型号 cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c # 查看物理CPU个数 cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l # 查看逻辑cpu的个数 cat /proc/cpuinfo| grep "processor"| wc -l # 查看cpu核数 cat /proc/cpuinfo| grep "cpu cores"| uniq # 查看服务器公网地址 curl ifconfig.me curl http://members.3322.org/dyndns/getip