Creating SWAP File on Linux
If you are installing Passwork on Linux and building libraries from source, we recommend enabling a swap file. The build process can use up to 4 GB of RAM: lack of free memory will cause an error.
Enabling the swap file:
- shell
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=5120
chmod 600 /var/swap.1
/sbin/mkswap /var/swap.1
/sbin/swapon /var/swap.1
Disabling the swap file:
- shell
/sbin/swapoff /var/swap.1
rm -rf /var/swap.1