1.檢查CPU情況
# 型號及核數(shù)
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
# 查看物理cpu個數(shù)
cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
# 查看邏輯cpu個數(shù)
cat /proc/cpuinfo | grep "processor" | wc -l
cat /proc/cpuinfo | grep 'process' | sort | uniq | wc -l
# 查看每個CPU核數(shù)
cat /proc/cpuinfo | grep "cores" | uniq
2.查看內(nèi)存
free -h
3.查看磁盤信息
# 查看磁盤列表
df -h
# 查看磁盤是機械盤或SSD盤(1為機械盤,0為SSD盤)
lsblk -d -o name,rota
文章來源:http://www.zghlxwxcb.cn/news/detail-717807.html
4.查看linux版本
# 查看Linux內(nèi)核版本:
cat /proc/version //查看linux版本信息
uname -a // 查看內(nèi)核/OS/CPU信息
# 查看Linux系統(tǒng)版本的命令:
lsb_release -a
cat /etc/redhat-release
文章來源地址http://www.zghlxwxcb.cn/news/detail-717807.html
網(wǎng)絡(luò)檢測
# 檢查網(wǎng)絡(luò)
ping 10.57.34.195
# 檢查端口是否暢通
telnet 10.57.31.217 3306
時鐘檢查
# ntpstat查看NTP服務器的狀態(tài)
ntpstat
字符檢查
locale | grep LANG // LANG=zh_CN.UTF-8
到了這里,關(guān)于服務器資源檢查的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!