Get the most out of your Centmin Mod LEMP stack
Become a Member

Vultr is swap file important?

Discussion in 'Virtual Private Server (VPS) hosting' started by arlon, Jun 12, 2016.

Tags:
  1. arlon

    arlon Member

    95
    6
    8
    Feb 20, 2016
    Ratings:
    +12
    Local Time:
    10:37 AM
    1.13.6
    10.1
    now i am using vultr 768MB ram with 15GB anda 5GB left without swap file
    i just read tutorial that web should make swap file prior centminmod instalation. is swap file very important to run centminmod? can i create swap file now? my centminmod has been running for 4 months

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    1:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah swap is recommended

    You can create a 1gb swap file with commands below
    Code (Text):
    dd if=/dev/zero of=/swapfile bs=1024 count=1024k
    ls -lah /swapfile
    mkswap /swapfile
    swapon /swapfile
    chown root:root /swapfile
    chmod 0600 /swapfile
    swapon -s
    echo "/swapfile          swap            swap    defaults        0 0" >> /etc/fstab
    mount -a
     
  3. arlon

    arlon Member

    95
    6
    8
    Feb 20, 2016
    Ratings:
    +12
    Local Time:
    10:37 AM
    1.13.6
    10.1
    my centminmod had been installed and running now,,doesn't creating new swap file make data loss?
     
    Last edited: Jun 12, 2016
  4. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    1:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Nope you'd be fine :)