Serial Number 확인
- dmidecode | grep 'Serial Number' | head -l
rpm 설치
리눅스 디스크 타입 확인
-
lsblk -d -o name,rota
0이면 ssd, 1이면 hdd
리눅스 디스크 용량 확인
- fdisk -l
Disk /dev/sda: 140 GiB, 150323855360 bytes, 293601280 sectors
Disk /dev/sdb: 140 GiB, 150323855360 bytes, 293601280 sectors
이런 식으로 표기 되어있으며 140GiB 디스크가 2개 있다는 의미임
리눅스 cpu 전체 물리 core 수 확인
- grep -c processor /proc/cpuinfo
리눅스 cpu당 물리 Core 수 확인
- grep "cpu cores" /proc/cpuinfo | tail -l
cpu cores : 8
cpu cores : 8
cpu cores : 8
cpu cores : 8
→ 상단과 같이 나오면 물리 Core수 총 8개라는 뜻임
리눅스 MEM 용량 확인
cat /proc/meminfo | grep 'MemTotal'
리눅스 CPU Model name 확인(종류)
cat /proc/cpuinfo | grep 'model name'
리눅스 디스크 용량 확인
fdisk -l | grep Disk
커널 정보 확인
hostnamectl | grep 'Kernel'
or uname -r(CentOS 6 버전 이하)
Serial number 확인
dmidecode | grep 'Serial Number' | head -l
비정상 적으로 swap 사용률이 높은 경우(스왑 정리)
/sbin/swapoff -a
15분 정도 소요되며 그 후에
/sbin/swapon -a 로 다시 스왑 시작
리눅스 캐시 메모리 반환(메모리 과도하게 사용되는 경우)
echo 3 > /proc/sys/vm/drop_caches
→ pagecache, dentries and inodes 캐시 메모리 비우기
서버 재부팅 시 방화벽 자동 실행 disable
systemctl disable firewalld