Skip to content

Instantly share code, notes, and snippets.

@yicr
Created April 16, 2020 10:28
Show Gist options
  • Save yicr/618164832135a522d2dd37cd71b1e0e0 to your computer and use it in GitHub Desktop.
Save yicr/618164832135a522d2dd37cd71b1e0e0 to your computer and use it in GitHub Desktop.

yum update でメモリ不足エラー。

スワップ領域でメモリ領域を確保する。

make swap file

dd if=/dev/zero of=/swapfile count=512000 bs=1K

change permission

パーミッション変更。

chmod 600 /swapfile

add swap file

スワップファイルとして登録

mkswap /swapfile

enable swap file

有効化

swapon /swapfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment