User Tools

Site Tools


linux:membuat-swap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:membuat-swap [2022/09/09 01:59] – created kbadminlinux:membuat-swap [2025/01/25 03:42] (current) kbadmin
Line 11: Line 11:
 echo "/swapfile   swap    swap    sw  0   0" >> /etc/fstab echo "/swapfile   swap    swap    sw  0   0" >> /etc/fstab
 </code> </code>
 +
 +Swap 1GB
 +<code>
 +sudo dd if=/dev/zero of=/swapfile count=1024 bs=1MiB
 +sudo chmod 600 /swapfile
 +sudo mkswap /swapfile
 +sudo swapon /swapfile
 +echo "/swapfile   swap    swap    sw  0   0" >> /etc/fstab
 +</code>
 +
  
 untuk membuat swap lebih besar anda cukup mengganti pada bagian **count=2048** dengan angka yang lebih tinggi, misalnya 4096 dll untuk membuat swap lebih besar anda cukup mengganti pada bagian **count=2048** dengan angka yang lebih tinggi, misalnya 4096 dll
  
  

Layanan

Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |
linux/membuat-swap.txt · Last modified: 2025/01/25 03:42 by kbadmin

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki