项目作者: chetankapoor

项目描述 :
在linux中创建swap的脚本。
高级语言: Shell
项目地址: git://github.com/chetankapoor/swap.git
创建时间: 2018-01-10T14:14:41Z
项目社区:https://github.com/chetankapoor/swap

开源协议:MIT License

下载


CircleCI

swap

A script to create swap in linux.

Usage:

Download the script using wget:

wget https://raw.githubusercontent.com/chetankapoor/swap/master/swap.sh -O swap.sh

Then run the script with following format:

sh swap.sh 2G


Available options:
size - Size of swap ( Example - 1G,2G)
path - Path to create a swapfile

Usage with Docker:

Build the docker image first

docker build -t swap .

Now run the docker image

docker run -it swap 2G