리눅스 스왑 파일생성1 CentOS Swap 파일 만들기 ==> Command fallocate -l 2048M /swapfile dd if=/dev/zero of=/swapfile count=2048 bs=1MiB chmod 0600 /swapfile mkswap /swapfile swapon /swapfile 위 명령어 입력후 /etc/fstab 에 가서 swap /swapfile swap defaults 0 0 해당 줄 추가 top -c 명령어 또는 free -m 명령어로 스왑 메모리 확인. 2021. 5. 17. 이전 1 다음