清羽Gist

Explore

  • 所有 Gists
  • Topics
  • Users
العربية Čeština Deutsch English Español Français Magyar Italiano 日本語 한국어 Polski Português Русский Türkçe Українська 简体中文 繁體中文

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

description:sync gists with given description

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

topic:homelab gists with given topic

all:systemctl search all fields

登錄
r

Topics

ram

倒序排序 創建 順序排序 創建 倒序排序 更新 順序排序 更新
LiuShen

LiuShen / Linux服务器添加SWAP虚拟内存

最後活躍 6 months ago bash linux ram swap

在Linux服务器添加SWAP虚拟内存,提高服务器使用率

0 0 1
swap.sh 1 檔案
1 #!/bin/bash
2
3 # ============================
4 # 创建一个 4GB 的 Swap 文件
5 # ============================
6
7 # 步骤 1:创建 4GB 的 Swap 文件
8 echo "步骤 1:创建 4GB 的 Swap 文件"
9
10 # 使用 fallocate 创建一个 4GB 的 swap 文件
清羽Gist © 2026 QingyuGist
陕ICP备2024028531号-2 陕公网安备61011602000637号