Tutti Nuovi

user:thomas utente che ha creato il gist

title:mygist titolo del gist

filename:myfile.txt nome di file nel gist

extension:yml estensione del file nel gist

language:go linguaggio del file nel gist

topic:homelab gists with given topic

Entra


Tutti Nuovi Entra

All gists matching topic swap

Più recente creazione
Meno recente creazione
Più recente aggiornamento
Meno recente aggiornamento

timmy / Swap 檔案與分割區設定工具

0 mi piace
0 forks
3 files
Ultima volta attivo 2 months ago
輕鬆設定與管理 Swap 檔案和分割區,讓系統更流暢運行。
management partition scripts setup swap swap-file
1 # 檢查目前是否有 swap 啟用
2 swapon --show
3 free -h
4
5 # 建立 2GB 的 swap 檔案(如果 fallocate 不支援可改用 dd)
6 sudo fallocate -l 2G /swapfile
7 sudo dd if=/dev/zero of=/swapfile bs=1M count=2048
8
9 # 設定正確權限
10 sudo chmod 600 /swapfile
Più nuovi Più vecchi

Creato da Opengist ⋅ Load: 13ms⋅

Italiano
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文