AWS Linux – assign swap file memory

  • check memory

#free -t -h
total used free shared buff/cache available
Mem: 983M 488M 121M 524K 373M 341M
Swap: 0B 0B 0B
Total: 983M 488M 121M

・make 1GM swap files

#dd if=/dev/zero of=/var/swap bs=1M count=1024
#mkswap /var/swap
#swapon /var/swap

About: wpadmin


Leave a Reply

Translate »