Linux · 2013-07-16

linux增加swap


dd if=/dev/zero of=/new_swap_file1 bs=1M count=4086
mkswap /new_swap_file1
chown root:root /new_swap_file1
chmod 0600 /new_swap_file1
swapon /new_swap_file1
#开机自动加载 修改/etc/fstab
/new_swap_file1 swap swap defaults 0 0