블로그 이미지
BJcomm
bjcomm

공지사항

최근에 받은 트랙백

글 보관함

calendar

      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
06-29 12:38

swap 파티션 생성

2019. 12. 23. 16:38 | Posted by bjcomm

fallocate -l 4GB /swapfile
dd if=/dev/zero of=/swapfile count=4096 bs=1MiB
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
free -m

 

echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
cat /etc/fstab

Comment