Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[Share] install swap file pada vps kvm

#1
install swap file pada vps kvm buat yg sering kehabisan RAM..

Quote:buat centos virtualisasi kvm
Code:
dd if=/dev/zero of=/swapfile bs=1024 count=524288
mkswap /swapfile
chown root:root /swapfile
chmod 0600 /swapfile
swapon /swapfile
sed -i '$ i\swapon /swapfile' /etc/rc.local
sed -i '$ i\swapon /swapfile' /etc/rc.d/rc.local

buat debian
Code:
dd if=/dev/zero of=/swapfile bs=1024 count=524288
mkswap /swapfile
chown root:root /swapfile
chmod 0600 /swapfile
swapon /swapfile
sed -i '$ i\swapon /swapfile' /etc/rc.local
rohan14, proud to be a member of ForNesia Family since Apr 2014.
Reply
  


Possibly Related Threads…
Thread Author Replies Views Last Post
  [SHARE] Install ROSSH di Debian rohan14 3 2,364 04-28-2016, 07:21 PM
Last Post: shenjai47
  INFO install vps milanisti 9 3,238 12-06-2015, 11:19 PM
Last Post: milanisti