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

    73
    5
    8
    Feb 20, 2016
    Ratings:
    +10
    Local Time:
    4:59 PM
    1.10.1
    10.0
    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

    28,935
    6,567
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,747
    Local Time:
    7:59 PM
    Nginx 1.13.x
    MariaDB 5.5
    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

    73
    5
    8
    Feb 20, 2016
    Ratings:
    +10
    Local Time:
    4:59 PM
    1.10.1
    10.0
    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

    28,935
    6,567
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,747
    Local Time:
    7:59 PM
    Nginx 1.13.x
    MariaDB 5.5
    Nope you'd be fine :)
     
    • Optimistic Optimistic x 1