swapファイル作成

LINEで送る
Pocket

# dd if=/dev/zero of=/swapfile1 bs=1M count=512
# chmod 600 /swapfile1
# mkswap /swapfile1
# swapon /swapfile1
  • 自動マウント
# cat /etc/fstab
#
UUID=55da5202-8008-43e8-8ade-2572319d9185     /           xfs    defaults,noatime  1   1
/swapfile1 swap swap defaults 0 0

Was this helpful?

0 / 0

コメントを残す 0

Your email address will not be published. Required fields are marked *