Before we start , Please use the command to check your Ubuntu Systematic SWAP partition
sudo swapon --show
    establish  swap File for ( distribution 1G Of swap Partition size )
sudo fallocate -l 1G /swapfile
    be careful : This may be displayed
fallocate: fallocate failed: Text file busy
    Execute at this time
swapoff -a
    Reexecution
sudo fallocate -l 1G /swapfile
    Execute the following command for swapfile File set the correct permissions :
sudo chmod 600 /swapfile
     use  mkswap  Utility set on file Linux SWAP region :
sudo mkswap /swapfile
    Use the following command to activate swap file :
sudo swapon /swapfile
      To create a good swap Partition permanent , You can swapfile Path content written to  /etc/fstab  In the document  :
sudo cp /etc/fstab /etc/fstab.bak echo '/swapfile none swap sw 0 0' | sudo tee
-a /etc/fstab
 

Technology
©2020 ioDraw All rights reserved
Swing actual combat Understanding closure about vue in el-date-picker type=daterange The problem of date not echoing Ubuntu 18.04 swap Partition expansion Snake code --c Language Edition visual c++6.0 open 【Golang Basic series 10 】Go language On conditional sentences ifString class —— summary ,String The nature of , Memory resolution , Commonly used APIAdobe Illustrator Publish native support Apple Silicon Test version of the software study java My first class antd table sort