[리눅스] Swap 생성/수정

- 09-04
- 2,307 회
- 0 건
# Swap 을 4기가로 생성
# Swap 을 수정시
dd if=/dev/zero of=/var/swapfile bs=1k count=4194304
mkswap /var/swapfile
swapon /var/swapfile
swapon -s
echo '/var/swapfile swap swap defaults 0 0' >> /etc/fstab
# Swap 을 수정시
swapoff swapfile
dd if=/dev/zero of=/var/swapfile bs=1k count={수정크기}
mkswap /var/swapfile
swapon /var/swapfile
swapon -s
로그인 후 댓글내용을 입력해주세요