拿到服务器的第一件事,就是检查服务器CPU、内存、磁盘、swap、ip、防火墙、时间、字符编码、操作系统及位数 cpu lscpu 内存和SWAP free -m 磁盘 df -h ip ip a 防火墙 firewall-cmd --state 时间 date 字符编码 locale 操作系统 cat /etc/redhat-release 系统位数 getconf LONG_BIT