GithubHelp home page GithubHelp logo

spiritlhls / addswap Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 3.0 54 KB

为kvm、openvz虚拟化的linux服务器增加swap分区,请确保在root权限下使用(Add swap partition for Linux server with kvm or openvz, please make sure to use it with root privileges)

Home Page: https://t.me/vps_reviews

License: MIT License

Shell 100.00%
bash kvm linux lxc openvz shell swap vps

addswap's Introduction

addswap's People

Contributors

spiritlhls avatar superyuiuo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

addswap's Issues

openvz 无效

———————————————————————————————————————
Linux VPS一键添加/删除swap脚本
1、添加swap
2、删除swap
———————————————————————————————————————
请输入数字 [1-2]:1
请输入需要添加的swap,建议为内存的2倍!
请输入swap数值:1024
Start adding SWAP space ......
no swap shell in crontab
swap创建成功,并查看信息:
              total        used        free      shared  buff/cache   available
Mem:            256         144           0           0         111         110
Swap:           256         102         153
root@jwhan99:~# free -h
              total        used        free      shared  buff/cache   available
Mem:          256Mi       144Mi       0.0Ki       0.0Ki       111Mi       110Mi
Swap:         256Mi       102Mi       153Mi
root@jwhan99:~# 

而且就算是显示增加了,这不也是掩耳盗铃吗?你只是伪造了/proc/meminfo而已

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.