Current time: 04-26-2018, 02:41 PM Stay in touch via Twitter Facebook RSS Feed
Ada Baiknya anda baca Peraturan Forum ForNesia Disini Dan Disitu Sebelum Terlambat!
System Registration Forums Mulai Kedepan Sewaktu waktu akan Di Tutup.
Silahkan Dibaca Mengenai Auto Pruning User . Agar tidak ada pertanyaan lagi tentang kehilangan akses forum.



[Share] install swap file pada vps kvm

05-13-2014 06:03 PM install swap file pada vps kvm
#1


rohan14 Away
HunteR
HunteR
*

Posts: 37
Joined: Apr 2014

Reputation:

FCoin: 2.00ƒc
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.




Possibly Related Threads...
Thread: Author Last Post
  [Info] install vps milanisti 12-07-2015 12:19 AM
Last Post: milanisti
  [Share] Install BadVPN PHUR 01-04-2015 05:22 AM
Last Post: ketek

Search thread:


[-]
Advertisement