freebsd设置交换swap分区

dd if=/dev/zero of=/usr/swap0 bs=1m count=128

chmod 0600 /usr/swap0

echo ‘md99 none swap sw,file=/usr/swap0 0 0’ >> /etc/fstab

swapon -aq

Drop Your Comment