1 頁 (共 1 頁)

clamav daemonize() failed cannot allocate memory

發表於 : 週三 11月 23, 2016 11:55 am
rusli
This creates a fake swap file on CentOS 6, this should help. EC2 does not have swap available. I use this on some virtual systems that run database software that requires swap.

代碼: 選擇全部

dd if=/dev/zero of=/swapfile bs=1M count=512
mkswap /swapfile
swapon /swapfile
free -m should now show the 512MB swap


add this to /etc/fstab to enable swap at boot time /swapfile swap swap defaults 0 0 If you don't then you need to run "swapon /swapfile" after every reboot


ref: https://www.virtualmin.com/node/33699