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

    91
    6
    8
    Feb 20, 2016
    Ratings:
    +12
    Local Time:
    10:30 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

    37,262
    8,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,536
    Local Time:
    1:30 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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
     
    • Like Like x 2
  3. arlon

    arlon Member

    91
    6
    8
    Feb 20, 2016
    Ratings:
    +12
    Local Time:
    10:30 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

    37,262
    8,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,536
    Local Time:
    1:30 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Nope you'd be fine :)
     
    • Optimistic Optimistic x 1
..