AWS-AMAZON2016. 6. 2. 19:55

dd if=/dev/zero of=/swapfile bs=1M count=16384


chown root:root /swapfile

  

chmod 600 /swapfile

  

mkswap /swapfile

  

swapon /swapfile

 

swapon -a

 


vi /etc/fstab

/swapfile   swap   swap   defaults  0  0


fdisk 파티션 생성

mkfs.ext4 /dev/xvdg1

mkdir /data

fsbat

blkid uuid 확인

fstab 수정

/dev/xvdg1
mount -a
 


/dev/xvdg1

 


 

 

Posted by 배움나눔